layers: arrange layers on output-layout change

This commit is contained in:
Johan Malm 2022-03-02 20:25:57 +00:00
parent 99361d6ad8
commit 04580fa825
2 changed files with 8 additions and 9 deletions

View file

@ -216,8 +216,6 @@ server_init(struct server *server)
wl_list_init(&server->views);
wl_list_init(&server->unmanaged_surfaces);
output_init(server);
server->scene = wlr_scene_create();
if (!server->scene) {
wlr_log(WLR_ERROR, "unable to create scene");
@ -229,7 +227,8 @@ server_init(struct server *server)
#endif
server->menu_tree = wlr_scene_tree_create(&server->scene->node);
server->osd_tree = wlr_scene_tree_create(&server->scene->node);
wlr_scene_attach_output_layout(server->scene, server->output_layout);
output_init(server);
/*
* Create some hands-off wlroots interfaces. The compositor is