mirror of
https://github.com/brl/mutter.git
synced 2025-07-20 08:54:13 +00:00
reload_transient_for: avoid xtransient_for loops
Don't set a window's xtransient_for if it would create a loop. Since this is the only place we ever set xtransient_for, we can therefore assume everywhere else that it does not loop. https://bugzilla.gnome.org/show_bug.cgi?id=647712
This commit is contained in:
@ -754,7 +754,7 @@ constrain_modal_dialog (MetaWindow *window,
|
||||
|
||||
if (!meta_prefs_get_attach_modal_dialogs ())
|
||||
return TRUE;
|
||||
if (window->type != META_WINDOW_MODAL_DIALOG || !parent || parent == window)
|
||||
if (window->type != META_WINDOW_MODAL_DIALOG || !parent)
|
||||
return TRUE;
|
||||
|
||||
x = parent->rect.x + (parent->rect.width / 2 - info->current.width / 2);
|
||||
|
Reference in New Issue
Block a user