Always display named tags
This commit is contained in:
parent
79cf5d8324
commit
5c195a31ee
4
dwm.c
4
dwm.c
|
@ -497,7 +497,7 @@ buttonpress(XEvent *e)
|
|||
occ |= c->tags == 255 ? 0 : c->tags;
|
||||
do {
|
||||
/* do not reserve space for vacant tags */
|
||||
if (!(occ & 1 << i || m->tagset[m->seltags] & 1 << i))
|
||||
if (!(occ & 1 << i || m->tagset[m->seltags] & 1 << i || tags[i][1] != '\0'))
|
||||
continue;
|
||||
x += TEXTW(tags[i]);
|
||||
} while (ev->x >= x && ++i < LENGTH(tags));
|
||||
|
@ -931,7 +931,7 @@ drawbar(Monitor *m)
|
|||
x = 0;
|
||||
for (i = 0; i < LENGTH(tags); i++) {
|
||||
/* do not draw vacant tags */
|
||||
if (!(occ & 1 << i || m->tagset[m->seltags] & 1 << i))
|
||||
if (!(occ & 1 << i || m->tagset[m->seltags] & 1 << i || tags[i][1] != '\0'))
|
||||
continue;
|
||||
|
||||
w = TEXTW(tags[i]);
|
||||
|
|
Loading…
Reference in New Issue