dwm-meillo
diff draw.c @ 570:f05cfa7d5128
applied Gottox patches
author | arg@mig29 |
---|---|
date | Tue, 21 Nov 2006 14:49:13 +0100 |
parents | 651f2c868b31 |
children | f0688a69f17f |
line diff
1.1 --- a/draw.c Tue Nov 21 12:17:47 2006 +0100 1.2 +++ b/draw.c Tue Nov 21 14:49:13 2006 +0100 1.3 @@ -99,7 +99,7 @@ 1.4 drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False); 1.5 x = dc.x + dc.w; 1.6 dc.w = textw(stext); 1.7 - dc.x = bx + bw - dc.w; 1.8 + dc.x = bw - dc.w; 1.9 if(dc.x < x) { 1.10 dc.x = x; 1.11 dc.w = bw - x; 1.12 @@ -107,10 +107,7 @@ 1.13 drawtext(stext, dc.status, False); 1.14 if((dc.w = dc.x - x) > bh) { 1.15 dc.x = x; 1.16 - if(sel) 1.17 - drawtext(sel->name, dc.sel, False); 1.18 - else 1.19 - drawtext(NULL, dc.norm, False); 1.20 + drawtext(sel ? sel->name : NULL, dc.sel, False); 1.21 } 1.22 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); 1.23 XSync(dpy, False);