]> Pileus Git - ~andy/gtk/commitdiff
[broadway] Only change window positioning for toplevels not e.g. menus
authorAlexander Larsson <alexl@redhat.com>
Thu, 25 Nov 2010 19:32:54 +0000 (20:32 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 25 Nov 2010 21:09:33 +0000 (22:09 +0100)
gdk/broadway/gdkwindow-broadway.c

index eb9c4094fcb62a0a99bfde98be3f32c401bcbe95..9d6e6d523ddaf857d8a7f95ae8738d0d6265db12 100644 (file)
@@ -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;