From d870b085807f8fd43121b060a576d7ee1295bd33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 10 Feb 2023 16:12:39 +0100 Subject: [PATCH] window: Simplify transient_for assignment Part-of: --- src/core/window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index 26a8f369c..1b88f580e 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7362,9 +7362,7 @@ meta_window_set_transient_for (MetaWindow *window, return; } - /* We know this won't create a reference cycle because we check for loops */ - g_clear_object (&window->transient_for); - window->transient_for = parent ? g_object_ref (parent) : NULL; + g_set_object (&window->transient_for, parent); /* update stacking constraints */ if (!window->override_redirect)