moving: Fix dragging against lower/right screen edges

This commit is contained in:
Victoria Brekenfeld 2024-01-02 12:31:38 +00:00 committed by Victoria Brekenfeld
parent be192c80e5
commit 9ce6a871c1

View file

@ -247,7 +247,10 @@ impl PointerGrab<State> 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 {