touchpad: ignore modifier key combos for dwt
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 4 Aug 2016 00:43:25 +0000 (10:43 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 4 Aug 2016 21:35:10 +0000 (07:35 +1000)
commit1ea9fbfd4c55a28db1227b65cfa036aec5d37ef3
tree1813c74ea5e0688751b1aac2c3ac2d7aa1f474ab
parent114021a6c1fa2a4132c4628ea1bd1dfa55482b9f
touchpad: ignore modifier key combos for dwt

Inspired by the syndaemon -K switch and Anton Lindqvist's patch.
https://patchwork.freedesktop.org/patch/102417/

We already ignored modifiers for dwt. Now we also ignore modifier + key
combinations, i.e. hitting Ctrl+s to save does not trigger dwt, the touchpad
remains immediately usable.

However, if dwt is already active and a modifier combination is pressed, dwt
remains active, i.e. while typing, a shift + key does not disable dwt.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad.c
src/evdev-mt-touchpad.h
test/touchpad.c