X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/e81eb46a78c45b41ce7126f980b6d6d8a8ff25da..6cca3999c851770658d9223122f3789af1e2f8cd:/draw.c?ds=sidebyside diff --git a/draw.c b/draw.c index 362d025..bbcfadb 100644 --- a/draw.c +++ b/draw.c @@ -72,7 +72,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool highlight) { if(highlight) { r.x = dc.x + 2; r.y = dc.y + 2; - r.width = r.height = 3; + r.width = r.height = (h + 2) / 4; XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); } } @@ -104,7 +104,9 @@ drawstatus(void) { } dc.w = bmw; - drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False); + drawtext(arrange == dofloat ? + FLOATSYMBOL : stackpos == StackBottom ? + BSTACKSYMBOL : VSTACKSYMBOL, dc.status, False); x = dc.x + dc.w; dc.w = textw(stext);