diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-02-18 12:57:12 +0100 |
---|---|---|
committer | Alexander Larsson <alex@localhost.localdomain> | 2009-04-02 10:16:30 +0200 |
commit | 255ec543b191743bd87a11a805ed06cf259921cd (patch) | |
tree | 98d87a1beb13f63786f2e999f0b35817425cd270 /gdk | |
parent | 532818909c861bee6fa0f381894140f961ad4b81 (diff) | |
download | gtk+-255ec543b191743bd87a11a805ed06cf259921cd.tar.gz |
Ensure offscreen windows are not used as non-toplevels
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkwindow.c | 3 |
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); |