Try to make the compiler error out if tag_layout is incorrectly configured.

This commit is contained in:
MayOrMayNotBeACat 2025-06-07 00:01:02 -04:00 committed by JustinWayland
parent 3af96163a7
commit eccf2288de

View File

@ -1,4 +1,4 @@
From 3af0875ecc461af0b61ba31dc33c25544256ae26 Mon Sep 17 00:00:00 2001
From fb953df35b2641661e99a35dc294e44442ec3a36 Mon Sep 17 00:00:00 2001
From: MayOrMayNotBeACat <maybeacat804@gmail.com>
Date: Fri, 6 Jun 2025 22:42:16 -0400
Subject: [PATCH] Allow initial layout to be set per tag.
@ -9,14 +9,14 @@ Subject: [PATCH] Allow initial layout to be set per tag.
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h
index 22d2171..0c39007 100644
index 22d2171..1bae97c 100644
--- a/config.def.h
+++ b/config.def.h
@@ -16,6 +16,7 @@ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You ca
/* tagging - TAGCOUNT must be no greater than 31 */
#define TAGCOUNT (9)
+static int tag_layout[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
+static int tag_layout[TAGCOUNT] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
/* logging */
static int log_level = WLR_ERROR;