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 /client.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-- | client.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -90,7 +90,7 @@ focus(Client *c) { | |||
| 90 | sel = c; | 90 | sel = c; |
| 91 | if(old) { | 91 | if(old) { |
| 92 | grabbuttons(old, False); | 92 | grabbuttons(old, False); |
| 93 | drawclient(old); | 93 | XSetWindowBorder(dpy, old->win, dc.norm[ColBorder]); |
| 94 | } | 94 | } |
| 95 | } | 95 | } |
| 96 | if(c) { | 96 | if(c) { |
| @@ -98,11 +98,12 @@ focus(Client *c) { | |||
| 98 | c->snext = stack; | 98 | c->snext = stack; |
| 99 | stack = c; | 99 | stack = c; |
| 100 | grabbuttons(c, True); | 100 | grabbuttons(c, True); |
| 101 | drawclient(c); | 101 | XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); |
| 102 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); | 102 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
| 103 | } | 103 | } |
| 104 | else | 104 | else |
| 105 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | 105 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
| 106 | drawstatus(); | ||
| 106 | } | 107 | } |
| 107 | 108 | ||
| 108 | Client * | 109 | Client * |
