---
Heyho,
This patch simplifies the status bar text padding and fixes the comment with a
wrong description.
--Markus
dwm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dwm.c b/dwm.c
index 25ef526..3d6cc28 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -717,8 +717,8 @@ drawbar(Monitor *m)
/* draw status first so it can be overdrawn by tags later */
if (m == selmon) { /* status is only drawn on selected monitor */
drw_setscheme(drw, scheme[SchemeNorm]);
- sw = TEXTW(stext) - lrpad / 2; /* no right padding so status text hugs the corner */
- drw_text(drw, m->ww - sw, 0, sw, bh, lrpad / 2 - 2, stext, 0);
+ sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
+ drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
}
for (c = m->clients; c; c = c->next) {
--
2.7.3
Received on Wed Oct 26 2016 - 22:42:30 CEST
This archive was generated by hypermail 2.3.0 : Wed Oct 26 2016 - 22:48:15 CEST