commit: 4553dc31a28b2c655dff3e5c999d9b0af45ec471
parent: 376c65237b0e48aeacd21f21bd3d683a7bac1808
author: Chris Noxz <chris@noxz.tech>
date: Fri, 24 Mar 2023 19:23:30 +0100
Add padding to centered title
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dwm.c b/dwm.c
@@ -975,7 +975,7 @@ drawbar(Monitor *m)
if (TEXTW(m->sel->name) > (m->ww - x))
drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
else
- drw_text(drw, x, 0, w, bh, (m->ww - TEXTW(m->sel->name)) / 2 - x, m->sel->name, 0);
+ drw_text(drw, x, 0, w, bh, (m->ww - TEXTW(m->sel->name) + lrpad) / 2 - x, m->sel->name, 0);
if (m->sel->isfloating)
drw_rect(drw, x + boxs + 1, boxs + 1, boxw, boxw, m->sel->isfixed, ColFg);
} else {