libevdev/libevdev
andeston d06abb81e5 Always push changed mt events when syncing
If the start and end of a touch are dropped, the slot, according to the
kernel, may have a different state. We should inform the client of these
changes even if the slot is not currently active.

For most axes this doesn't matter too much as we expect them to change
during an active touch anyway so we don't expect the kernel's caching to
be a problem. However where the ABS_MT_TOOL_TYPE changed during a sync
we need to inform the client of the new tool type so that future
touchese won't be erroneously treated as e.g. palms.

For a full reproducer see the test case but it comes down to:
- touch down with MT_TOOL_PALM, make sure libevdev reads the state
- change that slot to MT_TOOL_FINGER, trigger a sync
- ensure that libevdev pushes out that tool type change even if the
  slot is not currently active

Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net>
Part-of: <https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/124>
2025-01-06 13:21:29 +10:00
..
.gitignore Review/update .gitignore files 2013-11-19 09:34:23 +10:00
libevdev-int.h Change to the (always intended) MIT license 2021-01-25 13:46:55 +10:00
libevdev-names.c Change to the (always intended) MIT license 2021-01-25 13:46:55 +10:00
libevdev-uinput-int.h Change to the (always intended) MIT license 2021-01-25 13:46:55 +10:00
libevdev-uinput.c uinput: use named initializers for the event struct 2022-07-11 15:32:59 +10:00
libevdev-uinput.h doc: fix uinput device creation warnings 2021-09-04 13:21:42 +02:00
libevdev-util.h Change to the (always intended) MIT license 2021-01-25 13:46:55 +10:00
libevdev.c Always push changed mt events when syncing 2025-01-06 13:21:29 +10:00
libevdev.h doc: update the ioctl list with missing ioctls 2023-05-08 09:35:37 +10:00
libevdev.sym Change to the (always intended) MIT license 2021-01-25 13:46:55 +10:00
make-event-names.py make-event-names: Fix determinism issue 2021-02-22 07:06:46 +10:00
Makefile.am Include all include files in dist tarballs 2023-01-13 21:43:04 +00:00