[PATCH libinput 03/11] touchpad: 4-finger clickfingers are middle button clicks
Peter Hutterer
peter.hutterer at who-t.net
Tue Jul 21 22:09:23 PDT 2015
If a thumb is resting with a three-finger click, that must be a middle-click.
And the odd case where we have a real four-finger click doesn't need worrying
about.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev-mt-touchpad-buttons.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c
index 9cfa491..b8dcb51 100644
--- a/src/evdev-mt-touchpad-buttons.c
+++ b/src/evdev-mt-touchpad-buttons.c
@@ -902,9 +902,8 @@ out:
case 0:
case 1: button = BTN_LEFT; break;
case 2: button = BTN_RIGHT; break;
- case 3: button = BTN_MIDDLE; break;
default:
- button = 0;
+ button = BTN_MIDDLE; break;
break;
}
--
2.4.3
More information about the wayland-devel
mailing list