mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-10 19:10:48 +00:00
indicators: too wide (full) indicators when using awesombar and fancybar, ref. #69
This commit is contained in:
parent
251e3a23de
commit
8b43316e96
@ -45,7 +45,7 @@ draw_awesomebar(Bar *bar, BarArg *a)
|
|||||||
|
|
||||||
drw_setscheme(drw, scheme[scm]);
|
drw_setscheme(drw, scheme[scm]);
|
||||||
drw_text(drw, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, pad, c->name, 0, False);
|
drw_text(drw, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, pad, c->name, 0, False);
|
||||||
drawstateindicator(c->mon, c, 1, x, a->y, w, a->h, 0, 0, c->isfixed);
|
drawstateindicator(c->mon, c, 1, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, 0, 0, c->isfixed);
|
||||||
x += tabw + (i < remainder ? 1 : 0);
|
x += tabw + (i < remainder ? 1 : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ draw_fancybar(Bar *bar, BarArg *a)
|
|||||||
drw_setscheme(drw, scheme[m->sel == c ? SchemeTitleSel : SchemeTitleNorm]);
|
drw_setscheme(drw, scheme[m->sel == c ? SchemeTitleSel : SchemeTitleNorm]);
|
||||||
if (ftw > 0) /* trap special handling of 0 in drw_text */
|
if (ftw > 0) /* trap special handling of 0 in drw_text */
|
||||||
drw_text(drw, x, a->y, ftw, a->h, lrpad / 2, c->name, 0, False);
|
drw_text(drw, x, a->y, ftw, a->h, lrpad / 2, c->name, 0, False);
|
||||||
drawstateindicator(c->mon, c, 1, x, a->y, w, a->h, 0, 0, c->isfixed);
|
drawstateindicator(c->mon, c, 1, x, a->y, ftw, a->h, 0, 0, c->isfixed);
|
||||||
x += ftw;
|
x += ftw;
|
||||||
w -= ftw;
|
w -= ftw;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user