shell: Fix windows with SSD messing up input regions

This commit is contained in:
Victoria Brekenfeld 2023-01-25 18:44:06 +01:00
parent 7d4aabae6d
commit 691988eed6

View file

@ -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 {