aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-15 12:04:25 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-15 12:04:25 +0100
commitf8181f64e2ba4fca4e85036c48cf90a2151794fc (patch)
tree7d82e76b3214ca5e09a25ce8e68f1fbf1491c138 /client.c
parent0045ad87dfb32f35fc17b5b8942049cfe84d623c (diff)
downloaddwm-f8181f64e2ba4fca4e85036c48cf90a2151794fc.tar.zst
removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
Diffstat (limited to 'client.c')
-rw-r--r--client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/client.c b/client.c
index af13797..b122427 100644
--- a/client.c
+++ b/client.c
@@ -90,7 +90,7 @@ focus(Client *c) {
sel = c;
if(old) {
grabbuttons(old, False);
- drawclient(old);
+ XSetWindowBorder(dpy, old->win, dc.norm[ColBorder]);
}
}
if(c) {
@@ -98,11 +98,12 @@ focus(Client *c) {
c->snext = stack;
stack = c;
grabbuttons(c, True);
- drawclient(c);
+ XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
}
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
+ drawstatus();
}
Client *