33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From c24a69a0db8cc18e580cc813b91fae6aff9bb74a Mon Sep 17 00:00:00 2001
|
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Date: Wed, 29 Jul 2015 17:12:53 +1000
|
|
Subject: [PATCH libinput] gestures: check ntouches, not just num_slots for the
|
|
number of fingers
|
|
|
|
We need to check fake fingers as well as real fingers, especially for
|
|
two-finger scrolling on single-touch touchpads with BTN_TOOL_DOUBLETAP.
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1246651
|
|
|
|
Signed-off-by: Peter Hutterer <peter.hutterer@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 8bcdeb4..6b1a273 100644
|
|
--- a/src/evdev-mt-touchpad-gestures.c
|
|
+++ b/src/evdev-mt-touchpad-gestures.c
|
|
@@ -157,7 +157,7 @@ tp_gesture_get_active_touches(struct tp_dispatch *tp,
|
|
|
|
memset(touches, 0, count * sizeof(struct tp_touch *));
|
|
|
|
- for (i = 0; i < tp->num_slots; i++) {
|
|
+ for (i = 0; i < tp->ntouches; i++) {
|
|
t = &tp->touches[i];
|
|
if (tp_touch_active(tp, t)) {
|
|
touches[n++] = t;
|
|
--
|
|
2.4.3
|
|
|