mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-07 13:08:04 +02:00
touchpad: Make tap code follow state machine diagram part 3
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>
This commit is contained in:
parent
d2c44df7c3
commit
a78a25e62e
1 changed files with 2 additions and 1 deletions
|
|
@ -562,7 +562,8 @@ tp_tap_handle_state(struct tp_dispatch *tp, uint64_t time)
|
||||||
if (!t->dirty || t->state == TOUCH_NONE)
|
if (!t->dirty || t->state == TOUCH_NONE)
|
||||||
continue;
|
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;
|
t->tap.state = TAP_TOUCH_STATE_DEAD;
|
||||||
|
|
||||||
if (t->state == TOUCH_BEGIN) {
|
if (t->state == TOUCH_BEGIN) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue