[gtk+] popover: Set pointer motion mask on the popover window



commit 5b1eeac96d2fcc7bd6064a6f0487a2e8c042c9d9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Mar 5 13:50:17 2014 +0100

    popover: Set pointer motion mask on the popover window
    
    This is not necessary for the popover itself, but helps tooltips
    code confine the widget lookup within the popover if the pointer
    is inside it, otherwise the widget lookup may turn out wrong for
    motion events, starting the tooltip widget lookup from the toplevel
    window, mistakenly triggering tooltips on the natural window
    descendants (ie. the widget below the popover)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724785

 gtk/gtkpopover.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index a309bbf..7cadf98 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -238,6 +238,7 @@ gtk_popover_realize (GtkWidget *widget)
   attributes.wclass = GDK_INPUT_OUTPUT;
   attributes.event_mask =
     gtk_widget_get_events (widget) |
+    GDK_POINTER_MOTION_MASK |
     GDK_BUTTON_MOTION_MASK |
     GDK_BUTTON_PRESS_MASK |
     GDK_BUTTON_RELEASE_MASK |


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