layer: remove wl_list layers[] from struct output

...and just use `struct wlr_scene_tree *layer_tree[]`
This commit is contained in:
Johan Malm 2022-12-28 17:01:22 +00:00 committed by Consolatis
parent e7346f71c0
commit f01071e72c
4 changed files with 11 additions and 15 deletions

View file

@ -145,9 +145,8 @@ new_output_notify(struct wl_listener *listener, void *data)
* Create layer-trees (background, bottom, top and overlay) and
* a layer-popup-tree.
*/
int nr_layers = sizeof(output->layers) / sizeof(output->layers[0]);
int nr_layers = sizeof(output->layer_tree) / sizeof(output->layer_tree[0]);
for (int i = 0; i < nr_layers; i++) {
wl_list_init(&output->layers[i]);
output->layer_tree[i] =
wlr_scene_tree_create(&server->scene->tree);
node_descriptor_create(&output->layer_tree[i]->node,