[gtk/event-controller-responsive: 2/4] gesture: Chain up in filter_event



commit fca0f649a09e971dc932ecd8177905a240779f65
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 2 19:10:49 2019 +0000

    gesture: Chain up in filter_event
    
    This is the right thing to do.
    We want to exclude more events.

 gtk/gtkgesture.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 7276a3043d..e4e0791d59 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -628,7 +628,10 @@ gtk_gesture_filter_event (GtkEventController *controller,
    * subclasses which punch the holes in for the events
    * they can possibly handle.
    */
-  return EVENT_IS_TOUCHPAD_GESTURE (event);
+  if (EVENT_IS_TOUCHPAD_GESTURE (event))
+    return FALSE;
+
+  return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_parent_class)->filter_event (controller, event);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]