2008-02-05 Cody Russell <bratsche@gnome.org>
* gdk/win32/gdkwindow-win32.c (_gdk_modal_current): Walk
down the stack until we get to a window that is mapped.
Otherwise hiding a window will cause all windows in the app
to be blocked. (#514643)
svn path=/trunk/; revision=19477
+2008-02-05 Cody Russell <bratsche@gnome.org>
+
+ * gdk/win32/gdkwindow-win32.c (_gdk_modal_current): Walk
+ down the stack until we get to a window that is mapped.
+ Otherwise hiding a window will cause all windows in the app
+ to be blocked. (#514643)
+
2008-02-05 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c: Ignore images in the toplevel theme
GdkWindow *
_gdk_modal_current ()
{
- return modal_window_stack != NULL ? modal_window_stack->data : NULL;
+ if (modal_window_stack != NULL)
+ {
+ GSList *tmp = modal_window_stack;
+
+ while (tmp != NULL && !GDK_WINDOW_IS_MAPPED (tmp->data))
+ {
+ tmp = g_slist_next (tmp);
+ }
+
+ return tmp != NULL ? tmp->data : NULL;
+ }
+ else
+ {
+ return NULL;
+ }
}
void