summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-02-18 12:57:12 +0100
committerAlexander Larsson <alex@localhost.localdomain>2009-04-02 10:16:30 +0200
commit255ec543b191743bd87a11a805ed06cf259921cd (patch)
tree98d87a1beb13f63786f2e999f0b35817425cd270 /gdk
parent532818909c861bee6fa0f381894140f961ad4b81 (diff)
downloadgtk+-255ec543b191743bd87a11a805ed06cf259921cd.tar.gz
Ensure offscreen windows are not used as non-toplevels
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkwindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index a27e30cce7..38fac4bbc8 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);