touchpad: correct a wrong slot count by the kernel
alps.c hardcodes 5 slots in the kernel but some devices only provide 2 slots plus BTN_TOOL_TRIPLETAP, etc. Fix this by counting active slots and when the fake finger count exceeds the active slots but is still less than the number of slots, adjust the slots themselves downwards. And because the new test device messes with our slot count assumptions for the various tests hardcode that one device to return 2 slots. Fixes #408 Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net>
Showing
- meson.build 1 addition, 0 deletionsmeson.build
- src/evdev-mt-touchpad.c 32 additions, 2 deletionssrc/evdev-mt-touchpad.c
- src/evdev-mt-touchpad.h 1 addition, 0 deletionssrc/evdev-mt-touchpad.h
- test/litest-device-alps-3fg.c 179 additions, 0 deletionstest/litest-device-alps-3fg.c
- test/litest.h 4 additions, 0 deletionstest/litest.h
Loading
Please register or sign in to comment