Skip to content

Commit babfe8a

Browse files
committed
compositor.c (x11): Sink the background actors to the bottom of
the window_group when adding them. Prior to 3f76365 (wlr-layer-shell support) we created background actors once at Cinnamon startup, and they never needed restacking. Now their creation is deferred until the monitor manager is initialized, which may be after other windows have been added to the group (like nemo-desktop), so we need to make sure they get sent to the bottom.
1 parent 1b07851 commit babfe8a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/compositor/compositor.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,13 @@ rebuild_x11_background_actors (MetaCompositor *compositor)
607607
clutter_actor_set_size (actor, rect.width, rect.height);
608608

609609
clutter_actor_add_child (priv->window_group, actor);
610+
611+
/* add_child() stacks the actor at the top of the window group. On a
612+
* monitors-changed rebuild that leaves the new background above the
613+
* desktop windows (bottom_window_group) until the next restack.
614+
* Sink it to the bottom where backgrounds belong. */
615+
clutter_actor_set_child_below_sibling (priv->window_group, actor, NULL);
616+
610617
priv->background_actors = g_list_append (priv->background_actors, actor);
611618
}
612619
}

0 commit comments

Comments
 (0)