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:
Peter Hutterer 2016-05-13 09:46:50 +10:00
parent a683b62781
commit 98ee1791ca

View file

@ -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];