[gtk+] Don't delay showing windows until viewable in GDK_NATIVE_WINDOWS mode



commit 21efe59aa027354ebcc7160805583d9a3fb47a47
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Aug 28 12:10:49 2009 +0200

    Don't delay showing windows until viewable in GDK_NATIVE_WINDOWS mode
    
    If all windows are native there is no need for delaying the operations
    so we just do all shows/hides directly.

 gdk/gdkwindow.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 2785702..3cb3129 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6128,7 +6128,8 @@ set_viewable (GdkWindowObject *w,
 	set_viewable (child, val);
     }
 
-  if (gdk_window_has_impl (w)  &&
+  if (!_gdk_native_windows &&
+      gdk_window_has_impl (w)  &&
       w->window_type != GDK_WINDOW_FOREIGN &&
       !gdk_window_is_toplevel (w))
     {
@@ -6153,6 +6154,9 @@ set_viewable (GdkWindowObject *w,
        * do the show ourselves. We can't really tell this case from the normal
        * toplevel show as such toplevels are seen by gdk as parents of the
        * root window, so we make an exception for all toplevels.
+       *
+       * Also, when in GDK_NATIVE_WINDOW mode we never need to play games
+       * like this, so we just always show/hide directly.
        */
 
       impl_iface = GDK_WINDOW_IMPL_GET_IFACE (w->impl);



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