wlr_log(WLR_ERROR, "unable to create output layout");
exit(EXIT_FAILURE);
}
+ wlr_scene_attach_output_layout(server->scene, server->output_layout);
/* Enable screen recording with wf-recorder */
wlr_xdg_output_manager_v1_create(server->wl_display,
}
struct output *output;
- /* FIXME: Sort this out */
-// wl_list_for_each(output, &server->outputs, link) {
-// if (output) {
-// arrange_layers(output);
-// }
-// }
+ wl_list_for_each(output, &server->outputs, link) {
+ if (output) {
+ arrange_layers(output);
+ }
+ }
output_update_for_layout_change(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");
#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