aboutsummaryrefslogtreecommitdiff
path: root/src/layout/tests.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-04-20 12:36:54 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-04-25 02:00:18 -0700
commit59a42249a4da4bda44fa08a2e6a460ac1bd2000f (patch)
tree38032bc743852a156f69fc5cb5c3e6eabb32cb6f /src/layout/tests.rs
parent74b016202b1989f400f536d3837c8e1259c42c33 (diff)
downloadniri-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/tests.rs')
-rw-r--r--src/layout/tests.rs11
1 files changed, 3 insertions, 8 deletions
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<bool>,
},
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,