comparison client.c @ 711:b40134b93de3

I think this is the best solution of multihead support
author Anselm R. Garbe <arg@suckless.org>
date Tue, 23 Jan 2007 11:49:16 +0100
parents 6c2fcf88dd9f
children b288b57d81f8
comparison
equal deleted inserted replaced
710:a25294eac73a 711:b40134b93de3
87 if(old && old != c) { 87 if(old && old != c) {
88 grabbuttons(old, False); 88 grabbuttons(old, False);
89 XSetWindowBorder(dpy, old->win, dc.norm[ColBorder]); 89 XSetWindowBorder(dpy, old->win, dc.norm[ColBorder]);
90 } 90 }
91 if(c) { 91 if(c) {
92 if(issel) { 92 detachstack(c);
93 detachstack(c); 93 c->snext = stack;
94 c->snext = stack; 94 stack = c;
95 stack = c; 95 grabbuttons(c, True);
96 grabbuttons(c, True); 96 XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
97 XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); 97 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
98 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
99 }
100 else
101 XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
102 } 98 }
103 else if(issel) 99 else if(issel)
104 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 100 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
105 sel = c; 101 sel = c;
106 drawstatus(); 102 drawstatus();