diff options
author | arg@mig29 <unknown> | 2006-11-21 14:49:13 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-11-21 14:49:13 +0100 |
commit | 931e712eac3dad86e9447944ac70f7b238f8a58d (patch) | |
tree | 094a2bcc36937099d60fded7a18673f1bda86eb5 /draw.c | |
parent | 4ec04209e0b63c76bc607ed963707ef0640c9ed4 (diff) | |
download | dwm-931e712eac3dad86e9447944ac70f7b238f8a58d.tar.gz |
applied Gottox patches
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -99,7 +99,7 @@ drawstatus(void) { drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False); x = dc.x + dc.w; dc.w = textw(stext); - dc.x = bx + bw - dc.w; + dc.x = bw - dc.w; if(dc.x < x) { dc.x = x; dc.w = bw - x; @@ -107,10 +107,7 @@ drawstatus(void) { drawtext(stext, dc.status, False); if((dc.w = dc.x - x) > bh) { dc.x = x; - if(sel) - drawtext(sel->name, dc.sel, False); - else - drawtext(NULL, dc.norm, False); + drawtext(sel ? sel->name : NULL, dc.sel, False); } XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); XSync(dpy, False); |