X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/e7fa504c3e095db65853afd39d2d1324d439dcf4..54775e0b3e48273240d8efa619af0ce85e3685da:/bar.c?ds=sidebyside diff --git a/bar.c b/bar.c index 611c669..953ac6b 100644 --- a/bar.c +++ b/bar.c @@ -23,11 +23,15 @@ void draw_bar() { int i; + char *mode = arrange == tiling ? "#" : "~"; + dc.x = dc.y = 0; dc.w = bw; drawtext(NULL, False, False); - dc.w = 0; + dc.w = textw(mode) + dc.font.height; + drawtext(mode, True, True); + for(i = 0; i < TLast; i++) { dc.x += dc.w; dc.w = textw(tags[i]) + dc.font.height;