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:
parent
7f8c59614e
commit
2be1574e55
@ -682,7 +682,16 @@ meta_window_should_attach_to_parent (MetaWindow *window)
|
|||||||
if (!parent)
|
if (!parent)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
switch (parent->type)
|
||||||
|
{
|
||||||
|
case META_WINDOW_NORMAL:
|
||||||
|
case META_WINDOW_DIALOG:
|
||||||
|
case META_WINDOW_MODAL_DIALOG:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MetaWindow*
|
MetaWindow*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user