mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 18:40:05 +01:00
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> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
bae79eff3c
commit
0d40aefeca
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue