[gtk+/client-side-windows: 277/284] Ensure offscreen windows are not used as non-toplevels



commit 255ec543b191743bd87a11a805ed06cf259921cd
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Feb 18 12:57:12 2009 +0100

    Ensure offscreen windows are not used as non-toplevels
---
 gdk/gdkwindow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index a27e30c..38fac4b 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -878,11 +878,12 @@ gdk_window_new (GdkWindow     *parent,
     case GDK_WINDOW_TOPLEVEL:
     case GDK_WINDOW_DIALOG:
     case GDK_WINDOW_TEMP:
+    case GDK_WINDOW_OFFSCREEN:
       if (GDK_WINDOW_TYPE (parent) != GDK_WINDOW_ROOT)
 	g_warning (G_STRLOC "Toplevel windows must be created as children of\n"
 		   "of a window of type GDK_WINDOW_ROOT or GDK_WINDOW_FOREIGN");
     case GDK_WINDOW_CHILD:
-    case GDK_WINDOW_OFFSCREEN:
+      break;
       break;
     default:
       g_warning (G_STRLOC "cannot make windows of type %d", private->window_type);



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