From c4be3cd568d9d09f04562684b24ec7e473ba2923 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 5 Dec 2024 17:54:57 +0100 Subject: [PATCH] window-actor: Apply opacity once assigned a surface Trying to update the opacity before the window actor get assigned a surface will be ignored. As result, the initial opacity set by X11 clients using the EWMH property _NET_WM_WINDOW_OPACITY is not applied at first. To avoid the issue, make sure to set the opacity once the window actor has a surface assigned. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3513 Part-of: --- src/compositor/meta-window-actor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 10c50c0e6..fd3eb8a03 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -378,6 +378,7 @@ meta_window_actor_real_assign_surface_actor (MetaWindowActor *self, priv->surface = g_object_ref_sink (surface_actor); meta_window_actor_add_surface_actor (self, surface_actor); + meta_window_actor_update_opacity (self); if (meta_window_actor_is_frozen (self)) meta_window_actor_set_frozen (self, TRUE);