mirror of
https://github.com/labwc/labwc.git
synced 2026-02-22 01:40:25 -05:00
layer: remove wl_list layers[] from struct output
...and just use `struct wlr_scene_tree *layer_tree[]`
This commit is contained in:
parent
e7346f71c0
commit
f01071e72c
4 changed files with 11 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue