gestures: cancel hold gestures on thumb detection
authorJosé Expósito <jose.exposito89@gmail.com>
Tue, 2 Nov 2021 18:37:07 +0000 (19:37 +0100)
committerJosé Expósito <jose.exposito89@gmail.com>
Thu, 4 Nov 2021 17:40:54 +0000 (18:40 +0100)
commit5e44861e0ed7fdb447170a03adb9ff361ae6e4ce
tree5ac50984cc99f8677640e07bc7cee4d2c04e05e5
parentbe3c09bc1562b20db3e6533ab2e3347d05376a11
gestures: cancel hold gestures on thumb detection

Before hold gestures where implemented, when a thumb was detected it
was enough to reset the state machine.
However, now it is possible to detect a thumb while a hold gesture is
in course.

Cancel any ongoing gesture when a thumb is detected to avoid dropping
the gesture end event.

See #693

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
src/evdev-mt-touchpad-gestures.c