gtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE

There are GtkGestureSingle subclasses that can be made to handle multiple
fingers (GtkGestureSingle is a subclass of GtkGesture, and not the
opposite, after all). And GtkGestureSwipe already tries to handle
GDK_TOUCHPAD_SWIPE events, except this event handler silently ignores
those.

Falling back to the GtkGesture generic handler which already
handles touchpad gesture events fixes this.
This commit is contained in:
Carlos Garnacho 2017-03-02 18:14:00 +01:00
parent dc511a38d0
commit ed34be8bb3

View File

@ -193,6 +193,7 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
break;
case GDK_TOUCH_CANCEL:
case GDK_GRAB_BROKEN:
case GDK_TOUCHPAD_SWIPE:
return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_single_parent_class)->handle_event (controller,
event);
break;