summaryrefslogtreecommitdiff
path: root/gdk/broadway/gdkwindow-broadway.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-11-25 20:32:54 +0100
committerAlexander Larsson <alexl@redhat.com>2010-11-25 22:09:33 +0100
commit4004882b92aa8068997a8aa6fc872cb3b3573b42 (patch)
tree10b8a5a267de1b046dfa2bc448f403417f798873 /gdk/broadway/gdkwindow-broadway.c
parentc1a35afa5fc6b5e0dc8b6ecbe9202028c13aeb6a (diff)
downloadgtk+-4004882b92aa8068997a8aa6fc872cb3b3573b42.tar.gz
[broadway] Only change window positioning for toplevels not e.g. menus
Diffstat (limited to 'gdk/broadway/gdkwindow-broadway.c')
-rw-r--r--gdk/broadway/gdkwindow-broadway.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c
index eb9c4094fc..9d6e6d523d 100644
--- a/gdk/broadway/gdkwindow-broadway.c
+++ b/gdk/broadway/gdkwindow-broadway.c
@@ -359,7 +359,7 @@ _gdk_window_impl_new (GdkWindow *window,
/* Instead of window manager placement we have this mini hack
so that the main/first window is not covered in the demos. */
- if (impl->id > 1)
+ if (impl->id > 1 && private->window_type == GDK_WINDOW_TOPLEVEL)
{
private->x = 100;
private->y = 20;