equal
deleted
inserted
replaced
94 else if(sel != c) { |
94 else if(sel != c) { |
95 old = sel; |
95 old = sel; |
96 sel = c; |
96 sel = c; |
97 if(old) { |
97 if(old) { |
98 grabbuttons(old, False); |
98 grabbuttons(old, False); |
99 drawtitle(old); |
99 drawclient(old); |
100 } |
100 } |
101 } |
101 } |
102 if(c) { |
102 if(c) { |
103 detachstack(c); |
103 detachstack(c); |
104 c->snext = stack; |
104 c->snext = stack; |
105 stack = c; |
105 stack = c; |
106 grabbuttons(c, True); |
106 grabbuttons(c, True); |
107 drawtitle(c); |
107 drawclient(c); |
108 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
108 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
109 } |
109 } |
110 else |
110 else |
111 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
111 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
112 } |
112 } |