mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-30 08:20:09 +01:00
gestures: don't send swipe gestures when gestures are disabled
Introduced in6ad303bas part of an code flow optimization, causing any 3+ finger gesture to be posted as swipe gesture, even when gestures are disabled. However, the event is filtered in the higher levels with a bug message printed to the log. Don't post swipe gestures for devices where gestures are disabled. https://bugs.freedesktop.org/show_bug.cgi?id=95314 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> (cherry picked from commit98ee1791ca)
This commit is contained in:
parent
dfd9517f5a
commit
31ffda96fa
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ tp_gesture_handle_state_none(struct tp_dispatch *tp, uint64_t time)
|
|||
if (ntouches == 2)
|
||||
return GESTURE_STATE_SCROLL;
|
||||
else
|
||||
return GESTURE_STATE_SWIPE;
|
||||
return GESTURE_STATE_NONE;
|
||||
}
|
||||
|
||||
first = touches[0];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue