From 0913f46c7c52eccc304ceea6c66413e4c40e550e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Wed, 24 Feb 2021 01:02:54 +0100 Subject: [PATCH] Fix #1027: Plank appears on background when switching from fullscreen workspace (#1037) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Foré --- src/WindowManager.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/WindowManager.vala b/src/WindowManager.vala index 7c4fb801..0566c7b7 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -65,6 +65,8 @@ namespace Gala { public PointerLocator pointer_locator { get; private set; } + SystemBackground system_background; + Meta.PluginInfo info; WindowSwitcher? winswitcher = null; @@ -192,7 +194,7 @@ namespace Gala { * +-- top window group */ - var system_background = new SystemBackground (display); + system_background = new SystemBackground (display); system_background.background_actor.add_constraint (new Clutter.BindConstraint (stage, Clutter.BindCoordinate.ALL, 0)); @@ -1733,6 +1735,7 @@ namespace Gala { unowned Meta.Workspace workspace_to = manager.get_workspace_by_index (to); var main_container = new Clutter.Actor (); + var background_actor = new Clutter.Clone (system_background.background_actor); var static_windows = new Clutter.Actor (); var in_group = new Clutter.Actor (); var out_group = new Clutter.Actor (); @@ -1741,6 +1744,7 @@ namespace Gala { tmp_actors = new List (); tmp_actors.prepend (main_container); + tmp_actors.prepend (background_actor); tmp_actors.prepend (in_group); tmp_actors.prepend (out_group); tmp_actors.prepend (static_windows); @@ -1763,6 +1767,7 @@ namespace Gala { tmp_actors.prepend (wallpaper_clone); // pack all containers + main_container.add_child (background_actor); main_container.add_child (wallpaper); main_container.add_child (wallpaper_clone); main_container.add_child (out_group);