diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-20 12:36:54 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 02:00:18 -0700 |
| commit | 59a42249a4da4bda44fa08a2e6a460ac1bd2000f (patch) | |
| tree | 38032bc743852a156f69fc5cb5c3e6eabb32cb6f /src/input/spatial_movement_grab.rs | |
| parent | 74b016202b1989f400f536d3837c8e1259c42c33 (diff) | |
| download | niri-59a42249a4da4bda44fa08a2e6a460ac1bd2000f.tar.gz niri-59a42249a4da4bda44fa08a2e6a460ac1bd2000f.tar.bz2 niri-59a42249a4da4bda44fa08a2e6a460ac1bd2000f.zip | |
Remove cancellation from swipe gestures
It only worked for workspace switch, and even there it was more confusing than
helpful.
Diffstat (limited to 'src/input/spatial_movement_grab.rs')
| -rw-r--r-- | src/input/spatial_movement_grab.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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 { |
