diff options
author | Ben Collerson <benc@benc.cc> | 2023-03-23 09:38:48 +1000 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-04-08 11:27:49 -0600 |
commit | 9d68554c59a886b641d27a364884fb461af2d4f1 (patch) | |
tree | 3b60ba5bac6512abb72c4e07e15941c5b669de38 /dwl.c | |
parent | bbdf2a913b72e7a308ee0dfde6518a4285d4a775 (diff) |
remove tag labels from dwl
Tag labels are not used in dwl. Only the number of tags is important.
Tag labels should be defined for each tag in whatever status bar is
used.
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 ((1 << LENGTH(tags)) - 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) @@ -411,9 +411,6 @@ static Atom netatom[NetLast]; /* attempt to encapsulate suck into one file */ #include "client.h" -/* compile-time check if all tags fit into an unsigned int bit array. */ -struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; }; - /* function implementations */ void applybounds(Client *c, struct wlr_box *bbox) |