]> Pileus Git - ~andy/gtk/commitdiff
Fix visibility notification event reporting
authorAlexander Larsson <alexl@redhat.com>
Fri, 20 Jan 2012 10:01:23 +0000 (11:01 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 20 Jan 2012 10:01:49 +0000 (11:01 +0100)
We were checking the event mask for GDK_VISIBILITY_NOTIFY,
not GDK_VISIBILITY_NOTIFY_MASK, which was clearly a typo.

gdk/gdkwindow.c

index 0b9eacc7decc768c8254ba23bc7b6e2fd2f324fc..8dddcd1704ccfb6da72953b4e3de04115a884ef6 100644 (file)
@@ -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);