Skip to content

touchpad: improve finger counting for synaptics serial touchpads

A three-finger touch may cause slot N to end, in a frame after the BTN_TOOL_TRIPLETAP. This causes tp->nfinger_down to be decremented to 2 as the touch switches to MAYBE_END - which happens to be our num_slots. We exit early and never restore the touch correctly.

Fix this by checking that the number of fake touches is equal to the slots, if it is higher then we need to check for recovery.

Fixes #99 (closed)

Signed-off-by: Peter Hutterer peter.hutterer@who-t.net

Merge request reports