mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
layers: only define LAB_NR_LAYERS locally where needed
This commit is contained in:
parent
98d5fd483d
commit
d3918eec0a
4 changed files with 8 additions and 6 deletions
|
|
@ -34,7 +34,8 @@ layers_arrange(struct output *output)
|
|||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < LAB_NR_LAYERS; i++) {
|
||||
int nr_layers = sizeof(output->layers) / sizeof(output->layers[0]);
|
||||
for (int i = 0; i < nr_layers; i++) {
|
||||
struct lab_layer_surface *lab_layer_surface;
|
||||
wl_list_for_each(lab_layer_surface, &output->layers[i], link) {
|
||||
struct wlr_scene_layer_surface_v1 *scene_layer_surface =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue