From 59a42249a4da4bda44fa08a2e6a460ac1bd2000f Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 20 Apr 2025 12:36:54 +0300 Subject: Remove cancellation from swipe gestures It only worked for workspace switch, and even there it was more confusing than helpful. --- src/input/spatial_movement_grab.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/input/spatial_movement_grab.rs') diff --git a/src/input/spatial_movement_grab.rs b/src/input/spatial_movement_grab.rs index 56a36ce3..d8b13b96 100644 --- a/src/input/spatial_movement_grab.rs +++ b/src/input/spatial_movement_grab.rs @@ -40,10 +40,8 @@ impl SpatialMovementGrab { let layout = &mut state.niri.layout; let res = match self.gesture { GestureState::Recognizing => None, - GestureState::ViewOffset => layout.view_offset_gesture_end(false, Some(false)), - GestureState::WorkspaceSwitch => { - layout.workspace_switch_gesture_end(false, Some(false)) - } + GestureState::ViewOffset => layout.view_offset_gesture_end(Some(false)), + GestureState::WorkspaceSwitch => layout.workspace_switch_gesture_end(Some(false)), }; if let Some(output) = res { -- cgit