[gtk+/client-side-windows: 24/284] Don't convert foreign windows to child when reparented to non-toplevel



commit c7554a2c76c1e69033c2b775c70f023289f7415b
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Dec 4 21:57:43 2008 +0100

    Don't convert foreign windows to child when reparented to non-toplevel
---
 gdk/gdkwindow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 6611f49..ea5642f 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -998,7 +998,8 @@ gdk_window_reparent (GdkWindow *window,
     case GDK_WINDOW_CHILD:
     case GDK_WINDOW_DIALOG:
     case GDK_WINDOW_TEMP:
-      if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD)
+      if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \
+	  GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN)
 	{
 	  /* Save the original window type so we can restore it if the
 	   * window is reparented back to be a toplevel



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