mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
window: Simplify transient_for assignment
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>
This commit is contained in:
parent
1b75a62030
commit
d870b08580
@ -7362,9 +7362,7 @@ meta_window_set_transient_for (MetaWindow *window,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We know this won't create a reference cycle because we check for loops */
|
g_set_object (&window->transient_for, parent);
|
||||||
g_clear_object (&window->transient_for);
|
|
||||||
window->transient_for = parent ? g_object_ref (parent) : NULL;
|
|
||||||
|
|
||||||
/* update stacking constraints */
|
/* update stacking constraints */
|
||||||
if (!window->override_redirect)
|
if (!window->override_redirect)
|
||||||
|
Loading…
Reference in New Issue
Block a user