diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c index 8bcdeb40..6b1a273c 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;