touchpad: revert the clickpad detection mechanism
authorJosé Expósito <jose.exposito89@gmail.com>
Thu, 2 Dec 2021 11:52:56 +0000 (12:52 +0100)
committerJosé Expósito <jose.exposito89@gmail.com>
Thu, 2 Dec 2021 12:00:52 +0000 (12:00 +0000)
commitfbe5d35dca88ae9a751623cbfa3b6ed2f012ec83
tree7e3e74d4fba70d14a06c8c65d56f7d0982a5e16d
parent0bd1560750f7aa84cde173976e31c452586ec63b
touchpad: revert the clickpad detection mechanism

Use the previous heuristics to detect clickpads where a touchpad was
handled as a clickpad when:

 - The property INPUT_PROP_BUTTONPAD is set
 - The property INPUT_PROP_BUTTONPAD is NOT set but the touchpad only
   has BTN_LEFT

Revert a37d6dcc9c2ec7ebd0d3609e01da1cfcec28db6e:
"touchpad: if we have a right button, let's assume it's not a clickpad"
MR:  https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/614
BUG: https://gitlab.freedesktop.org/libinput/libinput/-/issues/595

Fix #704

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
src/evdev-mt-touchpad-buttons.c
test/test-touchpad-buttons.c