touchpad: Create fake touches for BTN_TOOL_FOO on multi-touch pads too
authorHans de Goede <hdegoede@redhat.com>
Fri, 18 Jul 2014 09:06:38 +0000 (11:06 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 21 Jul 2014 10:20:49 +0000 (20:20 +1000)
commit64f431c303fab787eaf8a7cb14752d908b3da8b2
tree0b48c8fc27078018e9fe9897226afcfe3db4aefe
parent9720c16eccec922630cde4ebf20490a688b33f35
touchpad: Create fake touches for BTN_TOOL_FOO on multi-touch pads too

Multi-touch pads may track less touches then they can report fingers being
present through BTN_TOOL_FOO. So create fake touches for fingers reported
by BTN_TOOL_FOO on multi-touch pads too (when necessary).

This fixes e.g. 3 finger tap not working on the T440s.

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