libinput/src
Peter Hutterer 7a6026104b touchpad: use the top-most touch for fake finger positions
The average human hand has four fingers but only one thumb, i.e. the chance of
a fake finger being close to the top-most touch is higher than to whatever the
first touch was (which may be a thumb at the bottom of the touchpad).
So search for the top-most real touch and copy its position into the fake
touches.

This also fixes another bug with the previous code - the first slot may not be
active but we still used its position for the fake touches. Whether that was
really triggerable is questionable though.

The test is only run for the T440 touchpad - we know it's big enough to
enable thumb detection and that way we don't have to double-check in the how
big the touchpad is, etc.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-07-22 08:59:24 +10:00
..
evdev-middle-button.c Move CASE_RETURN_STRING to libinput-util.h 2015-07-21 16:35:30 +10:00
evdev-mt-touchpad-buttons.c touchpad: ignore thumbs when counting clickfingers 2015-07-22 08:59:22 +10:00
evdev-mt-touchpad-edge-scroll.c Move CASE_RETURN_STRING to libinput-util.h 2015-07-21 16:35:30 +10:00
evdev-mt-touchpad-gestures.c Move CASE_RETURN_STRING to libinput-util.h 2015-07-21 16:35:30 +10:00
evdev-mt-touchpad-tap.c Move CASE_RETURN_STRING to libinput-util.h 2015-07-21 16:35:30 +10:00
evdev-mt-touchpad.c touchpad: use the top-most touch for fake finger positions 2015-07-22 08:59:24 +10:00
evdev-mt-touchpad.h touchpad: drop thumb handling from gestures 2015-07-16 08:09:50 +10:00
evdev.c evdev: restore pointing stick const accel property parsing 2015-07-21 11:08:50 +10:00
evdev.h touchpad: Add an API for touchpad gesture events 2015-07-06 14:08:54 +10:00
filter-private.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
filter.c filter: add a custom low-dpi acceleration 2015-07-02 13:03:43 +10:00
filter.h filter: add a custom low-dpi acceleration 2015-07-02 13:03:43 +10:00
libinput-private.h Mark internal log functions with attribute(printf) 2015-07-21 11:08:46 +10:00
libinput-util.c util: add a helper function to parse a "WIDTHxHEIGHT" property 2015-07-14 10:12:12 +10:00
libinput-util.h Move CASE_RETURN_STRING to libinput-util.h 2015-07-21 16:35:30 +10:00
libinput-version.h.in COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
libinput.c gestures: allow any gesture event type for gesture_get_dx/dy and get_angle 2015-07-06 14:09:33 +10:00
libinput.h doc: add documentation for touchpad gestures 2015-07-06 14:09:33 +10:00
libinput.pc.in Add -lrt to the libs 2014-07-03 09:59:43 +10:00
libinput.sym Merge branch 'touchpad-gestures' 2015-07-06 14:11:38 +10:00
Makefile.am evdev: add support for middle button emulation 2015-04-17 12:50:03 +10:00
path.c Add missing includes for *stat 2015-06-25 17:08:32 +10:00
path.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
timer.c COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
timer.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
udev-seat.c COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
udev-seat.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00