removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
This commit is contained in:
parent
0045ad87df
commit
f8181f64e2
5 changed files with 6 additions and 30 deletions
5
client.c
5
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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue