From 691988eed6245b6b9f31751cc5462998f92ba8d7 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 25 Jan 2023 18:44:06 +0100 Subject: [PATCH] shell: Fix windows with SSD messing up input regions --- src/shell/element/window.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell/element/window.rs b/src/shell/element/window.rs index 4831631d..a4ce5548 100644 --- a/src/shell/element/window.rs +++ b/src/shell/element/window.rs @@ -301,6 +301,9 @@ impl SpaceElement for CosmicWindow { } fn is_in_input_region(&self, point: &Point) -> 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 {