Skip to content
Snippets Groups Projects
Commit eb6ef9fe authored by Peter Hutterer's avatar Peter Hutterer
Browse files

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: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 56f1ac2b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment