From ed34be8bb3ea983f78c23ea922d14f511f6a2409 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 2 Mar 2017 18:14:00 +0100 Subject: [PATCH] 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. --- gtk/gtkgesturesingle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkgesturesingle.c b/gtk/gtkgesturesingle.c index 5aa0978050..7e3a5e895c 100644 --- a/gtk/gtkgesturesingle.c +++ b/gtk/gtkgesturesingle.c @@ -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;