From 81d5e3abdedab85307bb0a7c3fc67eedf4fa6679 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 28 Apr 2015 09:50:02 +1000 Subject: [PATCH libinput] touchpad: re-set the tap timer for doubletaps When we get the second down event, reset the timer for the tap timeout. This gives the user again 180ms for the second tap rather than 180ms for both taps together which is too short. https://bugs.freedesktop.org/show_bug.cgi?id=90172 Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-tap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c index 0f25e26..24f2ac6 100644 --- a/src/evdev-mt-touchpad-tap.c +++ b/src/evdev-mt-touchpad-tap.c @@ -224,6 +224,7 @@ tp_tap_tapped_handle_event(struct tp_dispatch *tp, break; case TAP_EVENT_TOUCH: tp->tap.state = TAP_STATE_DRAGGING_OR_DOUBLETAP; + tp_tap_set_timer(tp, time); break; case TAP_EVENT_TIMEOUT: tp->tap.state = TAP_STATE_IDLE; -- 2.3.5