wl_list_remove(&output->frame.link);
wl_list_remove(&output->destroy.link);
+ int nr_layers = sizeof(output->layer_tree) / sizeof(output->layer_tree[0]);
+ for (int i = 0; i < nr_layers; i++) {
+ wlr_scene_node_destroy(&output->layer_tree[i]->node);
+ }
+ wlr_scene_node_destroy(&output->layer_popup_tree->node);
+ wlr_scene_node_destroy(&output->osd_tree->node);
+
struct view *view;
struct server *server = output->server;
wl_list_for_each(view, &server->views, link) {
/*
* "Move" each wlr_output_cursor (in per-output coordinates) to
- * align with the seat cursor. Set a default cursor image so
+ * align with the seat cursor. Set a default cursor image so
* that the cursor isn't invisible on new outputs.
*
* TODO: remember the most recent cursor image (see cursor.c)