projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2c44df
)
touchpad: Make tap code follow state machine diagram part 3
author
Hans de Goede
<hdegoede@redhat.com>
Sun, 28 Sep 2014 10:51:09 +0000
(12:51 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Thu, 6 Nov 2014 10:18:29 +0000
(11:18 +0100)
We should only mark touches dead on a button click if we're dealing with a
clickpad.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad-tap.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad-tap.c
b/src/evdev-mt-touchpad-tap.c
index
d15e9ea
..
a38edbe
100644
(file)
--- a/
src/evdev-mt-touchpad-tap.c
+++ b/
src/evdev-mt-touchpad-tap.c
@@
-562,7
+562,8
@@
tp_tap_handle_state(struct tp_dispatch *tp, uint64_t time)
if (!t->dirty || t->state == TOUCH_NONE)
continue;
- if (tp->queued & TOUCHPAD_EVENT_BUTTON_PRESS)
+ if (tp->buttons.is_clickpad &&
+ tp->queued & TOUCHPAD_EVENT_BUTTON_PRESS)
t->tap.state = TAP_TOUCH_STATE_DEAD;
if (t->state == TOUCH_BEGIN) {