Fix #1027: Plank appears on background when switching from fullscreen workspace (#1037)

Co-authored-by: Daniel Foré <daniel@elementary.io>
This commit is contained in:
José Expósito 2021-02-24 01:02:54 +01:00 committed by GitHub
parent 3a0c856d7a
commit 0913f46c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Clutter.Clone> ();
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);