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/layout/monitor.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/layout/monitor.rs')
| -rw-r--r-- | src/layout/monitor.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 74c83317..4b816116 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -1026,11 +1026,7 @@ impl<W: LayoutElement> Monitor<W> { Some(true) } - pub fn workspace_switch_gesture_end( - &mut self, - cancelled: bool, - is_touchpad: Option<bool>, - ) -> bool { + pub fn workspace_switch_gesture_end(&mut self, is_touchpad: Option<bool>) -> bool { let Some(WorkspaceSwitch::Gesture(gesture)) = &mut self.workspace_switch else { return false; }; @@ -1039,12 +1035,6 @@ impl<W: LayoutElement> Monitor<W> { return false; } - if cancelled { - self.workspace_switch = None; - self.clean_up_workspaces(); - return true; - } - // Take into account any idle time between the last event and now. let now = self.clock.now_unadjusted(); gesture.tracker.push(0., now); |
