X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=draw.c;h=fe2951ce5e9c66f5e6869531858b876c02cf849f;hb=fbd310972db317fb32fdce292b86403cc5b696b8;hp=0ee362cd1461dd257502e422e5be97fa9545f8a4;hpb=6c5dc7017cff322b6402b3849c07529f5ab916fe;p=dwm.git diff --git a/draw.c b/draw.c index 0ee362c..fe2951c 100644 --- a/draw.c +++ b/draw.c @@ -98,15 +98,6 @@ drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool e /* extern */ void -drawall(void) { - Client *c; - - for(c = clients; c; c = getnext(c->next)) - drawclient(c); - drawstatus(); -} - -void drawstatus(void) { int i, x; @@ -120,7 +111,7 @@ drawstatus(void) { dc.x += dc.w; } dc.w = bmw; - drawtext(mtext, dc.status, False, False); + drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False); x = dc.x + dc.w; dc.w = textw(stext); dc.x = bw - dc.w; @@ -128,7 +119,7 @@ drawstatus(void) { dc.x = x; dc.w = bw - x; } - drawtext(stext, dc.status, False, False); + drawtext(stext, dc.norm, False, False); if((dc.w = dc.x - x) > bh) { dc.x = x; drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False); @@ -137,17 +128,6 @@ drawstatus(void) { XSync(dpy, False); } -void -drawclient(Client *c) { - if(c == sel && issel) { - drawstatus(); - XSetWindowBorder(dpy, c->win, dc.sel[ColBG]); - return; - } - XSetWindowBorder(dpy, c->win, dc.norm[ColBG]); - XSync(dpy, False); -} - unsigned long getcolor(const char *colstr) { Colormap cmap = DefaultColormap(dpy, screen);