summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorStacy Harper <contact@stacyharper.net>2021-08-22 23:14:47 +0200
committerJohn Sullivan <jsullivan@csumb.edu>2021-10-19 23:12:01 -0700
commit68962909c083c995b4fa44106a34429fc225d29b (patch)
tree6c872c018de3ebbad8d7b75f8f1d73d71e7ce76b /main.c
parenta7c28e647ece4944dc5cf92cf5dbfddb078919e4 (diff)
downloadsuggpicker-68962909c083c995b4fa44106a34429fc225d29b.tar.gz
Make the layout switchable
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index a76c872..f37ea5c 100644
--- a/main.c
+++ b/main.c
@@ -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,