dwm-meillo

diff draw.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 cbec08a54a15
children 4d12382fef8e
line diff
     1.1 --- a/draw.c	Sun Jan 14 22:37:34 2007 +0100
     1.2 +++ b/draw.c	Mon Jan 15 12:04:25 2007 +0100
     1.3 @@ -98,15 +98,6 @@
     1.4  /* extern */
     1.5  
     1.6  void
     1.7 -drawall(void) {
     1.8 -	Client *c;
     1.9 -
    1.10 -	for(c = clients; c; c = getnext(c->next))
    1.11 -		drawclient(c);
    1.12 -	drawstatus();
    1.13 -}
    1.14 -
    1.15 -void
    1.16  drawstatus(void) {
    1.17  	int i, x;
    1.18  
    1.19 @@ -137,17 +128,6 @@
    1.20  	XSync(dpy, False);
    1.21  }
    1.22  
    1.23 -void
    1.24 -drawclient(Client *c) {
    1.25 -	if(c == sel && issel) {
    1.26 -		drawstatus();
    1.27 -		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
    1.28 -		return;
    1.29 -	}
    1.30 -	XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
    1.31 -	XSync(dpy, False);
    1.32 -}
    1.33 -
    1.34  unsigned long
    1.35  getcolor(const char *colstr) {
    1.36  	Colormap cmap = DefaultColormap(dpy, screen);