From 2dd5212a795b27422d601df0566ae0d6644bd4c8 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 28 Aug 2006 08:02:29 +0200 Subject: applied sanders somepatches.patch --- draw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 64b11afc..3938e5e6 100644 --- a/draw.c +++ b/draw.c @@ -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); -- cgit v1.2.3