removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)

This commit is contained in:
Anselm R. Garbe
2007-01-15 12:04:25 +01:00
parent 0045ad87df
commit f8181f64e2
5 changed files with 6 additions and 30 deletions

20
draw.c
View File

@ -97,15 +97,6 @@ drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool e
/* 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 @@ drawstatus(void) {
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);