mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 23:50:30 +01:00
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> |
||
|---|---|---|
| .. | ||
| evdev-middle-button.c | ||
| evdev-mt-touchpad-buttons.c | ||
| evdev-mt-touchpad-edge-scroll.c | ||
| evdev-mt-touchpad-gestures.c | ||
| evdev-mt-touchpad-tap.c | ||
| evdev-mt-touchpad.c | ||
| evdev-mt-touchpad.h | ||
| evdev.c | ||
| evdev.h | ||
| filter-private.h | ||
| filter.c | ||
| filter.h | ||
| libinput-private.h | ||
| libinput-util.c | ||
| libinput-util.h | ||
| libinput-version.h.in | ||
| libinput.c | ||
| libinput.h | ||
| libinput.pc.in | ||
| libinput.sym | ||
| Makefile.am | ||
| path.c | ||
| path.h | ||
| timer.c | ||
| timer.h | ||
| udev-seat.c | ||
| udev-seat.h | ||