mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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)
|
||||
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*
|
||||
|
Loading…
Reference in New Issue
Block a user