aewl

changeset 334:5cfa63564a0f

tags appear in the left again
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 23 Aug 2006 11:33:50 +0200
parents 827f8f6c9e97
children aca8281c7415
files draw.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/draw.c	Wed Aug 23 10:21:57 2006 +0200
     1.2 +++ b/draw.c	Wed Aug 23 11:33:50 2006 +0200
     1.3 @@ -149,17 +149,17 @@
     1.4  	XSetWindowBorder(dpy, c->win, dc.bg);
     1.5  	XMapWindow(dpy, c->title);
     1.6  
     1.7 -	dc.y = dc.w = 0;
     1.8 -	dc.x = c->tw;
     1.9 +	dc.x = dc.y = 0;
    1.10 +	dc.w = 0;
    1.11  	for(i = 0; i < ntags; i++) {
    1.12  		if(c->tags[i]) {
    1.13 +			dc.x += dc.w;
    1.14  			dc.w = textw(tags[i]);
    1.15 -			dc.x -= dc.w;
    1.16  			drawtext(tags[i], !istile);
    1.17  		}
    1.18  	}
    1.19 -	dc.w = dc.x;
    1.20 -	dc.x = 0;
    1.21 +	dc.x += dc.w;
    1.22 +	dc.w = c->tw - dc.x;
    1.23  	drawtext(c->name, !istile);
    1.24  	XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
    1.25  	XSync(dpy, False);