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 <[email protected]> --- 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 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
