diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-28 08:02:29 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-28 08:02:29 +0200 |
commit | 2dd5212a795b27422d601df0566ae0d6644bd4c8 (patch) | |
tree | 6d2bb1e654511bbf9a0ee8a762d93d75eb320e16 /draw.c | |
parent | 00e95e1f38f7f63584925182a98fb36e84b0f246 (diff) |
applied sanders somepatches.patch
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -97,9 +97,7 @@ drawstatus() int i, x; dc.x = dc.y = 0; - dc.w = bw; - drawtext(NULL, dc.status, False); for(i = 0; i < ntags; i++) { dc.w = textw(tags[i]); if(seltag[i]) @@ -121,9 +119,12 @@ drawstatus() } drawtext(stext, dc.status, False); - if(sel && ((dc.w = dc.x - x) > bh)) { + if((dc.w = dc.x - x) > bh) { dc.x = x; - drawtext(sel->name, dc.sel, False); + if(sel) + drawtext(sel->name, dc.sel, False); + else + drawtext(NULL, dc.norm, False); } XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); XSync(dpy, False); |