[gtk+/gtk-3-2] Fix visibility notification event reporting



commit 4dae33cdb0b04c6ce181ab5957593a85d8ede00c
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jan 20 11:01:23 2012 +0100

    Fix visibility notification event reporting
    
    We were checking the event mask for GDK_VISIBILITY_NOTIFY,
    not GDK_VISIBILITY_NOTIFY_MASK, which was clearly a typo.

 gdk/gdkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 548330c..84abdc8 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -770,7 +770,7 @@ gdk_window_update_visibility (GdkWindow *window)
       window->effective_visibility = new_visibility;
 
       if (new_visibility != GDK_VISIBILITY_NOT_VIEWABLE &&
-	  window->event_mask & GDK_VISIBILITY_NOTIFY)
+	  window->event_mask & GDK_VISIBILITY_NOTIFY_MASK)
 	{
 	  event = _gdk_make_event (window, GDK_VISIBILITY_NOTIFY,
 				   NULL, FALSE);



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