Stop move grab when the start button is released

Rather than when all buttons are released.
This commit is contained in:
Ivan Molodetskikh
2024-12-14 17:42:52 +03:00
parent aac54d0ea1
commit bd1fd8383c
+2 -2
View File
@@ -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);
}
}