From 6bb4b26f301d9ac2770270ae8f7cbda5b3db2b25 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 22 Jul 2015 08:48:03 +1000 Subject: [PATCH] touchpad: 4-finger clickfingers are middle button clicks 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 Reviewed-by: Hans de Goede --- 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 9cfa491c..b8dcb519 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; }