summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-10-09 11:12:24 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-10-09 11:12:24 -0600
commit6d9a915fb60d38ebf0ae897fbd6affde39ed8d77 (patch)
tree6b3adc2f849de8d4ffbee8bbb0d5f1aa6c335199
parent935b852dc5b7e042f3eaf446e69048631b8101be (diff)
Revert "just add define"
I'm going to make some changes in the config file anyway This reverts commit e5367753bb90add013ee5d170a110064298ac2c4.
-rw-r--r--config.def.h3
-rw-r--r--dwl.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 9365505..4e30885 100644
--- a/config.def.h
+++ b/config.def.h
@@ -13,9 +13,8 @@ static const float urgentcolor[] = COLOR(0xff0000ff);
/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0}; /* You can also use glsl colors */
-/* tagging - tagcount must be no greater than 31 */
+/* tagging - TAGCOUNT must be no greater than 31 */
#define TAGCOUNT (9)
-static const int tagcount = TAGCOUNT;
/* logging */
static int log_level = WLR_ERROR;
diff --git a/dwl.c b/dwl.c
index 7fe1559..e07560e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -67,7 +67,7 @@
#define VISIBLEON(C, M) ((M) && (C)->mon == (M) && ((C)->tags & (M)->tagset[(M)->seltags]))
#define LENGTH(X) (sizeof X / sizeof X[0])
#define END(A) ((A) + LENGTH(A))
-#define TAGMASK ((1u << tagcount) - 1)
+#define TAGMASK ((1u << TAGCOUNT) - 1)
#define LISTEN(E, L, H) wl_signal_add((E), ((L)->notify = (H), (L)))
#define IDLE_NOTIFY_ACTIVITY wlr_idle_notify_activity(idle, seat), wlr_idle_notifier_v1_notify_activity(idle_notifier, seat)