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/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/input/mod.rs') diff --git a/src/input/mod.rs b/src/input/mod.rs index 28e254e4..4d077fe0 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -2886,19 +2886,13 @@ impl State { self.niri.gesture_swipe_3f_cumulative = None; let mut handled = false; - let res = self - .niri - .layout - .workspace_switch_gesture_end(event.cancelled(), Some(true)); + let res = self.niri.layout.workspace_switch_gesture_end(Some(true)); if let Some(output) = res { self.niri.queue_redraw(&output); handled = true; } - let res = self - .niri - .layout - .view_offset_gesture_end(event.cancelled(), Some(true)); + let res = self.niri.layout.view_offset_gesture_end(Some(true)); if let Some(output) = res { self.niri.queue_redraw(&output); handled = true; -- cgit