Make the layout switchable

This commit is contained in:
Stacy Harper
2021-08-22 23:14:47 +02:00
committed by John Sullivan
parent 0789db751d
commit 1fc0fbe5e6
4 changed files with 13 additions and 6 deletions

6
main.c
View File

@ -126,7 +126,11 @@ static const struct zwlr_layer_surface_v1_listener layer_surface_listener = {
.closed = layer_surface_closed,
};
#include "config.h"
/* configuration, allows nested code to access above variables */
#ifndef LAYOUT
#error "make sure to define LAYOUT"
#endif
#include LAYOUT
void
wl_touch_down(void *data, struct wl_touch *wl_touch, uint32_t serial,