X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/138b7fbd0563e176e4f4dce8ac771263f74ff6cb..338c0838580b32f1258a800392d93cf973baf1e6:/draw.c diff --git a/draw.c b/draw.c index 8369082..e0a93fe 100644 --- a/draw.c +++ b/draw.c @@ -79,7 +79,12 @@ drawstatus(void) { drawtext(stext, dc.norm); if((dc.w = dc.x - x) > bh) { dc.x = x; - drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm); + if(sel) { + drawtext(sel->name, dc.sel); + drawsquare(sel->ismax, sel->isfloating, dc.sel); + } + else + drawtext(NULL, dc.norm); } XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0); XSync(dpy, False);