diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-01-15 12:04:25 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-15 12:04:25 +0100 |
| commit | f8181f64e2ba4fca4e85036c48cf90a2151794fc (patch) | |
| tree | 7d82e76b3214ca5e09a25ce8e68f1fbf1491c138 /draw.c | |
| parent | implemented new color scheme accordingly to Sanders proposal (diff) | |
| download | dwm-f8181f64e2ba4fca4e85036c48cf90a2151794fc.tar.gz dwm-f8181f64e2ba4fca4e85036c48cf90a2151794fc.zip | |
removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
Diffstat (limited to '')
| -rw-r--r-- | draw.c | 20 |
1 files changed, 0 insertions, 20 deletions
| @@ -98,15 +98,6 @@ drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool e | |||
| 98 | /* extern */ | 98 | /* extern */ |
| 99 | 99 | ||
| 100 | void | 100 | void |
| 101 | drawall(void) { | ||
| 102 | Client *c; | ||
| 103 | |||
| 104 | for(c = clients; c; c = getnext(c->next)) | ||
| 105 | drawclient(c); | ||
| 106 | drawstatus(); | ||
| 107 | } | ||
| 108 | |||
| 109 | void | ||
| 110 | drawstatus(void) { | 101 | drawstatus(void) { |
| 111 | int i, x; | 102 | int i, x; |
| 112 | 103 | ||
| @@ -137,17 +128,6 @@ drawstatus(void) { | |||
| 137 | XSync(dpy, False); | 128 | XSync(dpy, False); |
| 138 | } | 129 | } |
| 139 | 130 | ||
| 140 | void | ||
| 141 | drawclient(Client *c) { | ||
| 142 | if(c == sel && issel) { | ||
| 143 | drawstatus(); | ||
| 144 | XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); | ||
| 145 | return; | ||
| 146 | } | ||
| 147 | XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); | ||
| 148 | XSync(dpy, False); | ||
| 149 | } | ||
| 150 | |||
| 151 | unsigned long | 131 | unsigned long |
| 152 | getcolor(const char *colstr) { | 132 | getcolor(const char *colstr) { |
| 153 | Colormap cmap = DefaultColormap(dpy, screen); | 133 | Colormap cmap = DefaultColormap(dpy, screen); |
