From 9ce6a871c1ae48778aa10d61dbad7eab943195d3 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Tue, 2 Jan 2024 12:31:38 +0000 Subject: [PATCH] moving: Fix dragging against lower/right screen edges --- src/shell/grabs/moving.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shell/grabs/moving.rs b/src/shell/grabs/moving.rs index 4f13cee7..68052826 100644 --- a/src/shell/grabs/moving.rs +++ b/src/shell/grabs/moving.rs @@ -247,7 +247,10 @@ impl PointerGrab for MoveGrab { output .geometry() .as_logical() - .contains(handle.current_location().to_i32_round()) + .overlaps_or_touches(Rectangle::from_loc_and_size( + handle.current_location().to_i32_floor(), + (0,0), + )) }) .cloned() else {