[gtk+/client-side-windows: 10/284] Make synchronized_configure work for child windows (used by in-process plugs) and ensures a native w



commit 6b1d7fd53df960c0513d1f859f5782a8b16c0c41
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Dec 4 10:04:05 2008 +0100

    Make synchronized_configure work for child windows (used by in-process plugs) and ensures a native window exist
---
 gdk/x11/gdkwindow-x11.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index ed9a854..dad4abc 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -5758,13 +5758,17 @@ gdk_window_enable_synchronized_configure (GdkWindow *window)
   GdkWindowObject *private = (GdkWindowObject *)window;
   GdkWindowImplX11 *impl;
 
-  if (!WINDOW_IS_TOPLEVEL (window))
+  if (!GDK_IS_WINDOW_IMPL_X11 (private->impl))
     return;
-
+  
   impl = GDK_WINDOW_IMPL_X11 (private->impl);
 	  
   if (!impl->use_synchronized_configure)
     {
+      /* This basically means you want to do fancy X specific stuff, so
+	 ensure we have a native window */
+      gdk_window_set_has_native (window, TRUE);
+  
       impl->use_synchronized_configure = TRUE;
       ensure_sync_counter (window);
     }



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