dwm-meillo

diff draw.c @ 689:cbec08a54a15

implemented new color scheme accordingly to Sanders proposal
author Anselm R. Garbe <arg@suckless.org>
date Sun, 14 Jan 2007 22:37:34 +0100
parents 39fa5308d73f
children 399f08187c27
line diff
     1.1 --- a/draw.c	Sun Jan 14 22:32:26 2007 +0100
     1.2 +++ b/draw.c	Sun Jan 14 22:37:34 2007 +0100
     1.3 @@ -120,7 +120,7 @@
     1.4  		dc.x += dc.w;
     1.5  	}
     1.6  	dc.w = bmw;
     1.7 -	drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False, False);
     1.8 +	drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False);
     1.9  	x = dc.x + dc.w;
    1.10  	dc.w = textw(stext);
    1.11  	dc.x = bw - dc.w;
    1.12 @@ -128,7 +128,7 @@
    1.13  		dc.x = x;
    1.14  		dc.w = bw - x;
    1.15  	}
    1.16 -	drawtext(stext, dc.status, False, False);
    1.17 +	drawtext(stext, dc.norm, False, False);
    1.18  	if((dc.w = dc.x - x) > bh) {
    1.19  		dc.x = x;
    1.20  		drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
    1.21 @@ -141,10 +141,10 @@
    1.22  drawclient(Client *c) {
    1.23  	if(c == sel && issel) {
    1.24  		drawstatus();
    1.25 -		XSetWindowBorder(dpy, c->win, dc.sel[ColBG]);
    1.26 +		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
    1.27  		return;
    1.28  	}
    1.29 -	XSetWindowBorder(dpy, c->win, dc.norm[ColBG]);
    1.30 +	XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
    1.31  	XSync(dpy, False);
    1.32  }
    1.33