Mercurial > 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 wrap: on
line diff
--- a/draw.c Sun Jan 14 22:37:34 2007 +0100 +++ b/draw.c Mon Jan 15 12:04:25 2007 +0100 @@ -98,15 +98,6 @@ /* extern */ void -drawall(void) { - Client *c; - - for(c = clients; c; c = getnext(c->next)) - drawclient(c); - drawstatus(); -} - -void drawstatus(void) { int i, x; @@ -137,17 +128,6 @@ XSync(dpy, False); } -void -drawclient(Client *c) { - if(c == sel && issel) { - drawstatus(); - XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); - return; - } - XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); - XSync(dpy, False); -} - unsigned long getcolor(const char *colstr) { Colormap cmap = DefaultColormap(dpy, screen);