shell: Fix windows with SSD messing up input regions
This commit is contained in:
parent
7d4aabae6d
commit
691988eed6
1 changed files with 3 additions and 0 deletions
|
|
@ -301,6 +301,9 @@ impl SpaceElement for CosmicWindow {
|
|||
}
|
||||
fn is_in_input_region(&self, point: &Point<f64, Logical>) -> bool {
|
||||
let mut point = *point;
|
||||
if !self.bbox().contains(point.to_i32_round()) {
|
||||
return false;
|
||||
}
|
||||
self.0.with_program(|p| {
|
||||
if p.has_ssd() {
|
||||
if point.y < SSD_HEIGHT as f64 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue