[gtk+/gestures: 63/202] gesture: ignore events if now widget window was found



commit 4570837e48755b693c21a206811c77a2215d5ea5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Apr 8 20:39:44 2014 +0200

    gesture: ignore events if now widget window was found

 gtk/gtkgesture.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index c6bd658..f2d208f 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -292,6 +292,9 @@ _gtk_gesture_update_point (GtkGesture     *gesture,
   priv = gtk_gesture_get_instance_private (gesture);
   widget_window = _find_widget_window (gesture, event->any.window);
 
+  if (!widget_window)
+    return FALSE;
+
   if (add)
     {
       /* If the event happens with the wrong device, or


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