mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
applied Markus' clarify status text padding patch
This commit is contained in:
parent
839c7f6939
commit
a137a86a23
1 changed files with 2 additions and 2 deletions
4
dwm.c
4
dwm.c
|
@ -717,8 +717,8 @@ drawbar(Monitor *m)
|
||||||
/* draw status first so it can be overdrawn by tags later */
|
/* draw status first so it can be overdrawn by tags later */
|
||||||
if (m == selmon) { /* status is only drawn on selected monitor */
|
if (m == selmon) { /* status is only drawn on selected monitor */
|
||||||
drw_setscheme(drw, scheme[SchemeNorm]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
sw = TEXTW(stext) - lrpad / 2; /* no right padding so status text hugs the corner */
|
sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
||||||
drw_text(drw, m->ww - sw, 0, sw, bh, lrpad / 2 - 2, stext, 0);
|
drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (c = m->clients; c; c = c->next) {
|
for (c = m->clients; c; c = c->next) {
|
||||||
|
|
Loading…
Reference in a new issue