[PATCH libinput 04/20] touchpad: don't allow tapping while any button is down
Hans de Goede
hdegoede at redhat.com
Tue Apr 15 05:28:01 PDT 2014
From: Peter Hutterer <peter.hutterer at who-t.net>
Immediately set the state to DEAD, waiting for the tap release to go back to
idle.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/evdev-mt-touchpad-tap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c
index bcc5700..863e004 100644
--- a/src/evdev-mt-touchpad-tap.c
+++ b/src/evdev-mt-touchpad-tap.c
@@ -508,7 +508,7 @@ tp_tap_handle_state(struct tp_dispatch *tp, uint32_t time)
struct tp_touch *t;
int filter_motion = 0;
- if (tp->queued & TOUCHPAD_EVENT_BUTTON_PRESS)
+ if (tp->buttons.state != 0)
tp_tap_handle_event(tp, TAP_EVENT_BUTTON, time);
tp_for_each_touch(tp, t) {
--
1.9.0
More information about the wayland-devel
mailing list