touchpad: don't check clickfinger distance for three fingers
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 23 Jul 2015 06:06:48 +0000 (16:06 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 27 Jul 2015 01:58:49 +0000 (11:58 +1000)
commit316f30d2f28b62f90efc2bdd9e6f3d83116070e7
tree7460e72c8a4519874c3d43f18fb8d687d1d76001
parented1aee6061e59b09f07875e6a4efaffcd279286d
touchpad: don't check clickfinger distance for three fingers

It's reasonable to expect a thumb (or the other hand's index finger) to click
a button while a finger is down for movement. It's less reasonable to expect
this when two fingers are interacting with the touchpad, or when two fingers
click the touchpad (even on a large touchpad that's an awkward position).

Simplify the clickfinger detection mechanism - if we have three touches down,
it's always a three-finger click. Two fingers may be a right click or a index
+ thumb click.

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