Blame SOURCES/0001-window-actor-Don-t-show-actor-until-meta_window_acto.patch

99364f
From 24ddf60768412fd3f5f7b432449b9ed2ea0d18b3 Mon Sep 17 00:00:00 2001
99364f
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
99364f
Date: Tue, 18 Feb 2020 23:01:28 +0100
99364f
Subject: [PATCH] window-actor: Don't show actor until meta_window_actor_show()
99364f
99364f
By default clutter will show an actor as it is added to a parent. This
99364f
means that after we create the window actor, when it's added to the
99364f
window group, we implicitly show it. What we really want is to not show
99364f
it until the window is supposed to be shown, which happens when
99364f
meta_window_actor_show() is called, as showing prior to that, could
99364f
cause issues.
99364f
99364f
Avoid the implicit show by setting the "show-on-set-parent" property on
99364f
the window actor to `FALSE` on window actor construction.
99364f
99364f
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1066
99364f
---
99364f
 src/compositor/compositor.c | 1 +
99364f
 1 file changed, 1 insertion(+)
99364f
99364f
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
99364f
index a6ae55abb9..ce2c1b8a3b 100644
99364f
--- a/src/compositor/compositor.c
99364f
+++ b/src/compositor/compositor.c
99364f
@@ -810,6 +810,7 @@ meta_compositor_add_window (MetaCompositor    *compositor,
99364f
 
99364f
   window_actor = g_object_new (window_actor_type,
99364f
                                "meta-window", window,
99364f
+                               "show-on-set-parent", FALSE,
99364f
                                NULL);
99364f
 
99364f
   if (window->layer == META_LAYER_OVERRIDE_REDIRECT)
99364f
-- 
99364f
2.26.2
99364f