comparison client.c @ 690:399f08187c27

removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
author Anselm R. Garbe <arg@suckless.org>
date Mon, 15 Jan 2007 12:04:25 +0100
parents a76799907854
children a2d568a5cdb8
comparison
equal deleted inserted replaced
689:cbec08a54a15 690:399f08187c27
88 else if(sel != c) { 88 else if(sel != c) {
89 old = sel; 89 old = sel;
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) {
97 detachstack(c); 97 detachstack(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 *
109 getclient(Window w) { 110 getclient(Window w) {
110 Client *c; 111 Client *c;