[broadway] Only change window positioning for toplevels not e.g. menus

This commit is contained in:
Alexander Larsson 2010-11-25 20:32:54 +01:00
parent c1a35afa5f
commit 4004882b92

View 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;