summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-17 23:49:53 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-17 23:49:53 -0400
commitf93a225bb6bbda31d1981f3f8844f4a104b3e787 (patch)
tree84317abdc59582fb7f25f74d6383ba400b676895 /dwm.c
parentf2a833eaa026fe676eb1f98ea943808363f5a189 (diff)
README overhaul
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index d353e23..ae533e7 100644
--- a/dwm.c
+++ b/dwm.c
@@ -896,9 +896,10 @@ drawbar(Monitor *m)
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? ( m == selmon ? SchemeSel : SchemeInactive) : SchemeNorm]);
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
if (occ & 1 << i)
- drw_rect(drw, x + boxs, boxs, boxw, boxw,
- m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
- urg & 1 << i);
+ drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw,
+ m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
+ urg & 1 << i);
+
x += w;
}
}
@@ -2003,7 +2004,7 @@ setup(void)
if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
die("no fonts could be loaded.");
lrpad = drw->fonts->h;
- bh = drw->fonts->h + 2;
+ bh = user_bh ? user_bh : drw->fonts->h + 2;
updategeom();
/* init atoms */
utf8string = XInternAtom(dpy, "UTF8_STRING", False);