Skip to content

Commit 3c54e84

Browse files
committed
fix on layout 0
1 parent 7d06d03 commit 3c54e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdwm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,12 +1151,12 @@ drawbar(Monitor *m)
11511151
x += sb_icon_wh + 2 * sb_delimiter_w;
11521152

11531153

1154-
for (i = 0; i < LENGTH(tags); i++) {
1154+
for (i = 0; i < LENGTH(tags) - 1; i++) {
11551155
/* do not draw vacant tags */
11561156
if (!(occ & 1 << i || m->tagset[m->seltags] & 1 << i))
11571157
continue;
11581158

1159-
w = TEXTW(tags[0]);
1159+
w = TEXTW(tags[i]);
11601160
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeTagsSel : SchemeTagsNorm]);
11611161
drw_text(drw, x, y, w, bh, lrpad / 2, tags[i], urg & 1 << i);
11621162
x += w;

0 commit comments

Comments
 (0)