layers.h: define LAB_NR_LAYERS (4)

This commit is contained in:
Johan Malm 2022-02-20 15:00:20 +00:00
parent 6488b933fa
commit f26b61137d
3 changed files with 5 additions and 2 deletions

View file

@ -29,7 +29,7 @@ arrange_layers(struct output *output)
&full_area.width, &full_area.height);
struct wlr_box usable_area = full_area;
for (int i = 0; i < 4; i++) {
for (int i = 0; i < LAB_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 =