summaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-16 11:33:42 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-16 11:33:42 +0100
commit3c35b90dd3e79e42b115f850dee077eda9816363 (patch)
treeac5c9362798133e0f1a3b3c052b8fe8807cb3fee /draw.c
parents/444/555/g - enlightened selected background (diff)
downloaddwm-3c35b90dd3e79e42b115f850dee077eda9816363.tar.gz
dwm-3c35b90dd3e79e42b115f850dee077eda9816363.zip
removed unnecessary bx, by, bw variables
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw.c b/draw.c
index fe2951c..178770b 100644
--- a/draw.c
+++ b/draw.c
@@ -114,17 +114,17 @@ drawstatus(void) {
114 drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False); 114 drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False);
115 x = dc.x + dc.w; 115 x = dc.x + dc.w;
116 dc.w = textw(stext); 116 dc.w = textw(stext);
117 dc.x = bw - dc.w; 117 dc.x = sw - dc.w;
118 if(dc.x < x) { 118 if(dc.x < x) {
119 dc.x = x; 119 dc.x = x;
120 dc.w = bw - x; 120 dc.w = sw - x;
121 } 121 }
122 drawtext(stext, dc.norm, False, False); 122 drawtext(stext, dc.norm, False, False);
123 if((dc.w = dc.x - x) > bh) { 123 if((dc.w = dc.x - x) > bh) {
124 dc.x = x; 124 dc.x = x;
125 drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False); 125 drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
126 } 126 }
127 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); 127 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0);
128 XSync(dpy, False); 128 XSync(dpy, False);
129} 129}
130 130