mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 09:20:07 +01:00
gestures: don't send swipe gestures when gestures are disabled
Introduced in 6ad303b as 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>
This commit is contained in:
parent
a683b62781
commit
98ee1791ca
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