mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-06 19:24:51 +00:00
Try to make the compiler error out if tag_layout is incorrectly configured.
This commit is contained in:
parent
3af96163a7
commit
eccf2288de
@ -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>
|
From: MayOrMayNotBeACat <maybeacat804@gmail.com>
|
||||||
Date: Fri, 6 Jun 2025 22:42:16 -0400
|
Date: Fri, 6 Jun 2025 22:42:16 -0400
|
||||||
Subject: [PATCH] Allow initial layout to be set per tag.
|
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(-)
|
2 files changed, 9 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/config.def.h b/config.def.h
|
diff --git a/config.def.h b/config.def.h
|
||||||
index 22d2171..0c39007 100644
|
index 22d2171..1bae97c 100644
|
||||||
--- a/config.def.h
|
--- a/config.def.h
|
||||||
+++ b/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
|
@@ -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 */
|
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||||
#define TAGCOUNT (9)
|
#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 */
|
/* logging */
|
||||||
static int log_level = WLR_ERROR;
|
static int log_level = WLR_ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user