JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
trying a different configuration
[dwm.git] / draw.c
diff --git a/draw.c b/draw.c
index fb4ba2e..64b11af 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -94,27 +94,25 @@ drawall()
 void
 drawstatus()
 {
-       static const char *mode[] = { "><", "|=" };
        int i, x;
 
        dc.x = dc.y = 0;
        dc.w = bw;
 
-       if(!modew)
-               modew = textw(mode[0]) > textw(mode[1]) ? textw(mode[0]) : textw(mode[1]);
-       drawtext(mode[arrange == dotile ? 1 : 0], dc.status, False);
-
-       dc.w = 0;
-       dc.x = modew;
+       drawtext(NULL, dc.status, False);
        for(i = 0; i < ntags; i++) {
-               dc.x += dc.w;
                dc.w = textw(tags[i]);
                if(seltag[i])
                        drawtext(tags[i], dc.sel, sel && sel->tags[i]);
                else
                        drawtext(tags[i], dc.norm, sel && sel->tags[i]);
+               dc.x += dc.w;
        }
-       x = dc.x + dc.w + 1;
+
+       dc.w = bmw;
+       drawtext(arrange == dotile ? TILESYMBOL : FLOATSYMBOL, dc.status, False);
+
+       x = dc.x + dc.w;
        dc.w = textw(stext);
        dc.x = bx + bw - dc.w;
        if(dc.x < x) {