Skip to content

Commit

Permalink
moving: Fix dragging against lower/right screen edges
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Jan 3, 2024
1 parent be192c8 commit 9ce6a87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shell/grabs/moving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9ce6a87

Please sign in to comment.