touchpad: don't allow gestures with a clickpad button down by a finger
authorMatt Mayfield <mdmayfield@users.noreply.github.com>
Wed, 14 Aug 2019 13:29:07 +0000 (08:29 -0500)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 16 Aug 2019 04:48:52 +0000 (14:48 +1000)
commit73d55cc6c5787ed7a086ecd0e1e797e85b80cb7b
tree8ce8f96f72a2a20a65d0518beb5942f48ab683bb
parentac007401bb52316f7908cb9d9e5b7b498bf5a02e
touchpad: don't allow gestures with a clickpad button down by a finger

Allowing gestures when holding a physical click enables tasks like
switching workspaces while dragging an icon, but this should only be
possible with a *thumb* holding down the clickpad, not fingers. This
commit restores the ability to hold down the clickpad with two or three
fingers to right- or middle-drag.

Fixes #339, #340

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-gestures.c
test/test-touchpad-buttons.c