diff options
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); |
