|
@@ -493,7 +493,7 @@ buttonpress(XEvent *e)
|
|
|
if (ev->window == selmon->barwin) {
|
|
if (ev->window == selmon->barwin) {
|
|
|
i = x = 0;
|
|
i = x = 0;
|
|
|
do
|
|
do
|
|
|
- x += TEXTW(tags[i]);
|
|
|
|
|
|
|
+ x += bh;
|
|
|
while (ev->x >= x && ++i < LENGTH(tags));
|
|
while (ev->x >= x && ++i < LENGTH(tags));
|
|
|
if (i < LENGTH(tags)) {
|
|
if (i < LENGTH(tags)) {
|
|
|
click = ClkTagBar;
|
|
click = ClkTagBar;
|
|
@@ -807,11 +807,11 @@ drawbar(Monitor *m)
|
|
|
}
|
|
}
|
|
|
x = 0;
|
|
x = 0;
|
|
|
for (i = 0; i < LENGTH(tags); i++) {
|
|
for (i = 0; i < LENGTH(tags); i++) {
|
|
|
- w = TEXTW(tags[i]);
|
|
|
|
|
|
|
+ w = bh;
|
|
|
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
|
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
|
|
- drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
|
|
|
|
|
|
+ drw_text(drw, x, 0, bh, bh, 0, "", urg & 1 << i);
|
|
|
if (occ & 1 << i)
|
|
if (occ & 1 << i)
|
|
|
- drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
|
|
|
|
|
|
+ drw_rect(drw, x+boxw,boxw, w-boxw*2, w-boxw*2,
|
|
|
m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
|
m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
|
|
urg & 1 << i);
|
|
urg & 1 << i);
|
|
|
x += w;
|
|
x += w;
|