touchpad: require a <45 degree movement for a palm to become a touch
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 14 Jul 2014 06:38:46 +0000 (16:38 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 20 Jul 2014 22:56:12 +0000 (08:56 +1000)
commitb3c578521e7b53bb9fd0516344d9c24b24e519a1
tree645f1586d9719e2560727571fc8ac3646743b97a
parent9ecce8e2f73e9115f680755745d9c0d8c4e50a00
touchpad: require a <45 degree movement for a palm to become a touch

Any legitimate finger movement that starts in the palm area is expected to
move out of the palm area at an angle roughly orthogonal to the edge of the
touchpad. Check for the direction of the movement vector, and if it is within
the accepted cardinal/ordinal directions then proceed.

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