dwm-meillo
diff draw.c @ 748:61821891835c
statusbar: removed squares, removed modesymbols, normcolor for client title
author | meillo@marmaro.de |
---|---|
date | Sun, 11 Feb 2007 12:20:54 +0100 |
parents | 295c8ca7a27a |
children | 6692d7e7e156 |
line diff
1.1 --- a/draw.c Sun Feb 11 12:04:45 2007 +0100 1.2 +++ b/draw.c Sun Feb 11 12:20:54 2007 +0100 1.3 @@ -72,17 +72,6 @@ 1.4 XChangeGC(dpy, dc.gc, GCForeground | GCFont, &gcv); 1.5 XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); 1.6 } 1.7 - x = (h + 2) / 4; 1.8 - r.x = dc.x + 1; 1.9 - r.y = dc.y + 1; 1.10 - if(filledsquare) { 1.11 - r.width = r.height = x + 1; 1.12 - XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); 1.13 - } 1.14 - else if(emptysquare) { 1.15 - r.width = r.height = x; 1.16 - XDrawRectangles(dpy, dc.drawable, dc.gc, &r, 1); 1.17 - } 1.18 } 1.19 1.20 /* extern */ 1.21 @@ -98,7 +87,7 @@ 1.22 drawtext(tags[i], dc.sel, sel && sel->tags[i], isoccupied(i)); 1.23 else 1.24 drawtext(tags[i], dc.norm, sel && sel->tags[i], isoccupied(i)); 1.25 - dc.x += dc.w; 1.26 + dc.x += dc.w + 1; 1.27 } 1.28 dc.w = bmw; 1.29 drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False); 1.30 @@ -112,7 +101,7 @@ 1.31 drawtext(stext, dc.norm, False, False); 1.32 if((dc.w = dc.x - x) > bh) { 1.33 dc.x = x; 1.34 - drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False); 1.35 + drawtext(sel ? sel->name : NULL, dc.norm, False, False); 1.36 } 1.37 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0); 1.38 XSync(dpy, False);