[mutter] window-actor: Don't show actor until meta_window_actor_show()



commit c06fae474135c1697984d6a57e819454134e14de
Author: Jonas Ådahl <jadahl gmail com>
Date:   Tue Feb 18 23:01:28 2020 +0100

    window-actor: Don't show actor until meta_window_actor_show()
    
    By default clutter will show an actor as it is added to a parent. This
    means that after we create the window actor, when it's added to the
    window group, we implicitly show it. What we really want is to not show
    it until the window is supposed to be shown, which happens when
    meta_window_actor_show() is called, as showing prior to that, could
    cause issues.
    
    Avoid the implicit show by setting the "show-on-set-parent" property on
    the window actor to `FALSE` on window actor construction.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1066

 src/compositor/compositor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index f6734da2d..8315ca56e 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -631,6 +631,7 @@ meta_compositor_add_window (MetaCompositor    *compositor,
 
   window_actor = g_object_new (window_actor_type,
                                "meta-window", window,
+                               "show-on-set-parent", FALSE,
                                NULL);
 
   if (window->layer == META_LAYER_OVERRIDE_REDIRECT)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]