aewl

diff client.c @ 715:5b3e4cdb6674

implemented Sanders remarks
author Anselm R. Garbe <arg@suckless.org>
date Tue, 23 Jan 2007 13:10:35 +0100
parents 7034ee0f48d6
children 4ce65f61f01b
line diff
     1.1 --- a/client.c	Tue Jan 23 12:29:17 2007 +0100
     1.2 +++ b/client.c	Tue Jan 23 13:10:35 2007 +0100
     1.3 @@ -95,7 +95,7 @@
     1.4  	drawstatus();
     1.5  	if(!activescreen)
     1.6  		return;
     1.7 -	if(sel) {
     1.8 +	if(c) {
     1.9  		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
    1.10  		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    1.11  	}
    1.12 @@ -157,6 +157,7 @@
    1.13  		StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
    1.14  	XGetTransientForHint(dpy, c->win, &trans);
    1.15  	grabbuttons(c, False);
    1.16 +	XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
    1.17  	updatetitle(c);
    1.18  	settags(c, getclient(trans));
    1.19  	if(!c->isfloat)