From 6a4cb2ce787184163c820a44d2adab3aa41d8bf0 Mon Sep 17 00:00:00 2001 From: Gregor Niehl Date: Sat, 20 Apr 2024 18:47:25 +0200 Subject: [PATCH] swipeTracker: Allow touchpad gestures with >3 fingers Make it easier to switch workspaces by also allowing swipes with 4 or more fingers. This is consistent with how we behave for touchscreen swipes too. Part-of: --- js/ui/swipeTracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index cef904c05..a78fb2898 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -126,7 +126,7 @@ const TouchpadSwipeGesture = GObject.registerClass({ if (event.get_gesture_phase() === Clutter.TouchpadGesturePhase.BEGIN) this._state = TouchpadState.NONE; - if (event.get_touchpad_gesture_finger_count() !== GESTURE_FINGER_COUNT) + if (event.get_touchpad_gesture_finger_count() < GESTURE_FINGER_COUNT) return Clutter.EVENT_PROPAGATE; if ((this._allowedModes & Main.actionMode) === 0)