[PATCH libinput 4/4] touchpad: disable gestures for single-finger touchpads
Peter Hutterer
peter.hutterer at who-t.net
Thu Jan 21 18:06:15 PST 2016
No point trying to detect pinch gestures if we only have one set of
coordinates. This makes two-finger scrolling on ST touchpads more reactive.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev-mt-touchpad-gestures.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c
index 53a7149..bec0693 100644
--- a/src/evdev-mt-touchpad-gestures.c
+++ b/src/evdev-mt-touchpad-gestures.c
@@ -550,7 +550,7 @@ tp_init_gesture(struct tp_dispatch *tp)
/* two-finger scrolling is always enabled, this flag just
* decides whether we detect pinch. semi-mt devices are too
* unreliable to do pinch gestures. */
- tp->gesture.enabled = !tp->semi_mt;
+ tp->gesture.enabled = !tp->semi_mt && tp->num_slots > 1;
tp->gesture.twofinger_state = GESTURE_2FG_STATE_NONE;
--
2.5.0
More information about the wayland-devel
mailing list