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/tests.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/layout/tests.rs') diff --git a/src/layout/tests.rs b/src/layout/tests.rs index 5d45ee98..a49552a8 100644 --- a/src/layout/tests.rs +++ b/src/layout/tests.rs @@ -599,7 +599,6 @@ enum Op { is_touchpad: bool, }, WorkspaceSwitchGestureEnd { - cancelled: bool, is_touchpad: Option, }, InteractiveMoveBegin { @@ -1362,8 +1361,7 @@ impl Op { layout.view_offset_gesture_update(delta, timestamp, is_touchpad); } Op::ViewOffsetGestureEnd { is_touchpad } => { - // We don't handle cancels in this gesture. - layout.view_offset_gesture_end(false, is_touchpad); + layout.view_offset_gesture_end(is_touchpad); } Op::WorkspaceSwitchGestureBegin { output_idx: id, @@ -1383,11 +1381,8 @@ impl Op { } => { layout.workspace_switch_gesture_update(delta, timestamp, is_touchpad); } - Op::WorkspaceSwitchGestureEnd { - cancelled, - is_touchpad, - } => { - layout.workspace_switch_gesture_end(cancelled, is_touchpad); + Op::WorkspaceSwitchGestureEnd { is_touchpad } => { + layout.workspace_switch_gesture_end(is_touchpad); } Op::InteractiveMoveBegin { window, -- cgit