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/layout/monitor.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/layout/monitor.rs') 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 Monitor { Some(true) } - pub fn workspace_switch_gesture_end( - &mut self, - cancelled: bool, - is_touchpad: Option, - ) -> bool { + pub fn workspace_switch_gesture_end(&mut self, is_touchpad: Option) -> bool { let Some(WorkspaceSwitch::Gesture(gesture)) = &mut self.workspace_switch else { return false; }; @@ -1039,12 +1035,6 @@ impl Monitor { 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); -- cgit