From eb64fdaf8fe4f5e6957a35e74004b183acc905c8 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Fri, 25 Oct 2024 11:27:41 +0200 Subject: [PATCH] element/window: Input offset fixes --- src/shell/element/window.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell/element/window.rs b/src/shell/element/window.rs index 97d24e55..5e995cd4 100644 --- a/src/shell/element/window.rs +++ b/src/shell/element/window.rs @@ -256,7 +256,7 @@ impl CosmicWindow { || (point_i32.y - geo.loc.y >= -RESIZE_BORDER && point_i32.y - geo.loc.y < 0) || (point_i32.x - geo.loc.x >= geo.size.w && point_i32.x - geo.loc.x < geo.size.w + RESIZE_BORDER) - || (point_i32.y - geo.loc.y >= geo.size.h + || (point_i32.y - geo.loc.y >= geo.size.h + SSD_HEIGHT && point_i32.y - geo.loc.y < geo.size.h + SSD_HEIGHT + RESIZE_BORDER) { window_ui = Some(( @@ -271,7 +271,9 @@ impl CosmicWindow { Point::from((0., 0.)), )); } + } + if p.has_ssd(false) { relative_pos.y -= SSD_HEIGHT as f64; offset.y += SSD_HEIGHT as f64; }