[gtk+] Fix visibility notification event reporting



commit 7ec927a3861f4b3af5228171feb3fd2728340c9c
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 0b9eacc..8dddcd1 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -824,7 +824,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]