touchpad: hook up to the tapping configuration
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 4 Feb 2014 00:38:21 +0000 (10:38 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 3 Jul 2014 03:51:11 +0000 (13:51 +1000)
commit2219c12c3aa45b80f235e761e87c17fb9ec70eae
tree12de201a5dcce94a2103bc6ea998608c2d3cb61c
parent401592870d3d6df3deb669387d58bf632fa0317f
touchpad: hook up to the tapping configuration

Now that we have run-time changes of the tap.enabled state move the check
to the IDLE state only. Otherwise the tap machine may hang if tapping is
disabled while a gesture is in progress.

Two basic tests are added to check for the tap default setting - which is now
"tap disabled by default", for two reasons:
* if you don't know that tapping is a thing (or enabled by default), you get
  spurious button events that make the desktop feel buggy.
* if you do know what tapping is and you want it, you usually know where to
  enable it, or at least you can search for it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-tap.c
src/evdev-mt-touchpad.h
test/touchpad.c