aewl

diff client.c @ 690:399f08187c27

removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
author Anselm R. Garbe <arg@suckless.org>
date Mon, 15 Jan 2007 12:04:25 +0100
parents a76799907854
children a2d568a5cdb8
line diff
     1.1 --- a/client.c	Sun Jan 14 22:37:34 2007 +0100
     1.2 +++ b/client.c	Mon Jan 15 12:04:25 2007 +0100
     1.3 @@ -90,7 +90,7 @@
     1.4  		sel = c;
     1.5  		if(old) {
     1.6  			grabbuttons(old, False);
     1.7 -			drawclient(old);
     1.8 +			XSetWindowBorder(dpy, old->win, dc.norm[ColBorder]);
     1.9  		}
    1.10  	}
    1.11  	if(c) {
    1.12 @@ -98,11 +98,12 @@
    1.13  		c->snext = stack;
    1.14  		stack = c;
    1.15  		grabbuttons(c, True);
    1.16 -		drawclient(c);
    1.17 +		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
    1.18  		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    1.19  	}
    1.20  	else
    1.21  		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    1.22 +	drawstatus();
    1.23  }
    1.24  
    1.25  Client *