aewl

diff draw.c @ 697:4d12382fef8e

removed unnecessary bx, by, bw variables
author Anselm R. Garbe <arg@suckless.org>
date Tue, 16 Jan 2007 11:33:42 +0100
parents 399f08187c27
children 295c8ca7a27a
line diff
     1.1 --- a/draw.c	Tue Jan 16 11:28:17 2007 +0100
     1.2 +++ b/draw.c	Tue Jan 16 11:33:42 2007 +0100
     1.3 @@ -114,17 +114,17 @@
     1.4  	drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False);
     1.5  	x = dc.x + dc.w;
     1.6  	dc.w = textw(stext);
     1.7 -	dc.x = bw - dc.w;
     1.8 +	dc.x = sw - dc.w;
     1.9  	if(dc.x < x) {
    1.10  		dc.x = x;
    1.11 -		dc.w = bw - x;
    1.12 +		dc.w = sw - x;
    1.13  	}
    1.14  	drawtext(stext, dc.norm, False, False);
    1.15  	if((dc.w = dc.x - x) > bh) {
    1.16  		dc.x = x;
    1.17  		drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
    1.18  	}
    1.19 -	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
    1.20 +	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0);
    1.21  	XSync(dpy, False);
    1.22  }
    1.23