dwm-meillo

changeset 351:d822b5fbe11e

fixed
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 24 Aug 2006 12:07:10 +0200
parents b10852dbbffe
children 5a8bdc3b37cb
files draw.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/draw.c	Thu Aug 24 12:04:56 2006 +0200
     1.2 +++ b/draw.c	Thu Aug 24 12:07:10 2006 +0200
     1.3 @@ -114,16 +114,16 @@
     1.4  
     1.5  	dc.x = dc.y = 0;
     1.6  	dc.w = bw;
     1.7 -	drawtext(NULL, !istile, False);
     1.8 +	drawtext(NULL, istile ? 1 : 0, False);
     1.9  
    1.10  	dc.w = 0;
    1.11  	for(i = 0; i < ntags; i++) {
    1.12  		dc.x += dc.w;
    1.13  		dc.w = textw(tags[i]);
    1.14  		if(istile)
    1.15 -			drawtext(tags[i], seltag[i], sel && sel->tags[i]);
    1.16 +			drawtext(tags[i], seltag[i] ? 0 : 1, sel && sel->tags[i]);
    1.17  		else
    1.18 -			drawtext(tags[i], !seltag[i], sel && sel->tags[i]);
    1.19 +			drawtext(tags[i], seltag[i] ? 1 : 0, sel && sel->tags[i]);
    1.20  	}
    1.21  	x = dc.x + dc.w;
    1.22  	dc.w = textw(stext);
    1.23 @@ -132,11 +132,11 @@
    1.24  		dc.x = x;
    1.25  		dc.w = bw - x;
    1.26  	}
    1.27 -	drawtext(stext, !istile, False);
    1.28 +	drawtext(stext, istile ? 1 : 0, False);
    1.29  
    1.30  	if(sel && ((dc.w = dc.x - x) > bh)) {
    1.31  		dc.x = x;
    1.32 -		drawtext(sel->name, istile, False);
    1.33 +		drawtext(sel->name, istile ? 0 : 1, False);
    1.34  	}
    1.35  	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
    1.36  	XSync(dpy, False);
    1.37 @@ -159,7 +159,7 @@
    1.38  	XMapWindow(dpy, c->twin);
    1.39  	dc.x = dc.y = 0;
    1.40  	dc.w = c->tw;
    1.41 -	drawtext(c->name, !istile, False);
    1.42 +	drawtext(c->name, istile ? 1 : 0, False);
    1.43  	XCopyArea(dpy, dc.drawable, c->twin, dc.gc, 0, 0, c->tw, c->th, 0, 0);
    1.44  	XSync(dpy, False);
    1.45  }