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



commit a6eacc5f9d7542eafc7908bfaa4a3a053a557cf8
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]