window: only attach dialogs to NORMAL, DIALOG, and MODAL_DIALOG windows

Attaching dialogs to unusual windows (like the desktop) looks bad, so
don't do it.

https://bugzilla.gnome.org/show_bug.cgi?id=646761
This commit is contained in:
Dan Winship 2011-07-22 12:34:10 -04:00
parent 7f8c59614e
commit 2be1574e55

View File

@ -682,7 +682,16 @@ meta_window_should_attach_to_parent (MetaWindow *window)
if (!parent)
return FALSE;
return TRUE;
switch (parent->type)
{
case META_WINDOW_NORMAL:
case META_WINDOW_DIALOG:
case META_WINDOW_MODAL_DIALOG:
return TRUE;
default:
return FALSE;
}
}
MetaWindow*