[PATCH libinput 4/9] touchpad: don't allow tapping while any button is down
Peter Hutterer
peter.hutterer at who-t.net
Thu Mar 27 23:23:53 PDT 2014
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>
---
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.8.5.3
More information about the wayland-devel
mailing list