struct server;
+#define LAB_NR_LAYERS (4)
+
enum layer_parent {
LAYER_PARENT_LAYER,
LAYER_PARENT_POPUP,
struct server *server;
};
+/* FIXME: do we still need lab_layer_popup and lab_layer_subsurface? */
struct lab_layer_popup {
struct wlr_xdg_popup *wlr_popup;
enum layer_parent parent_type;
&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 =
output->frame.notify = output_frame_notify;
wl_signal_add(&wlr_output->events.frame, &output->frame);
- for (int i = 0; i < 4; i++) {
+ for (int i = 0; i < LAB_NR_LAYERS; i++) {
wl_list_init(&output->layers[i]);
output->layer_tree[i] =
wlr_scene_tree_create(&server->scene->node);