diff options
| -rw-r--r-- | src/input/move_grab.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/move_grab.rs b/src/input/move_grab.rs index a11a09cf..c1d979bc 100644 --- a/src/input/move_grab.rs +++ b/src/input/move_grab.rs @@ -123,8 +123,8 @@ impl PointerGrab<State> for MoveGrab { } } - if handle.current_pressed().is_empty() { - // No more buttons are pressed, release the grab. + if !handle.current_pressed().contains(&self.start_data.button) { + // The button that initiated the grab was released. handle.unset_grab(self, data, event.serial, event.time, true); } } |
