comparison tag.c @ 194:655e38416bb8

fixed view-change bug reported on the list
author arg@10ksloc.org
date Fri, 04 Aug 2006 18:17:02 +0200
parents 56fee1dc9d53
children 87c5d5176e17
comparison
equal deleted inserted replaced
193:7c0527dd63cd 194:655e38416bb8
55 resize(c, True, TopLeft); 55 resize(c, True, TopLeft);
56 } 56 }
57 else 57 else
58 ban(c); 58 ban(c);
59 } 59 }
60 if(sel && !sel->tags[tsel]) { 60 if((sel = getnext(clients))) {
61 if((sel = getnext(clients))) { 61 higher(sel);
62 higher(sel); 62 focus(sel);
63 focus(sel); 63 }
64 } 64 else
65 else 65 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
66 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
67 }
68 drawall(); 66 drawall();
69 } 67 }
70 68
71 void 69 void
72 dotile(Arg *arg) 70 dotile(Arg *arg)
120 i++; 118 i++;
121 } 119 }
122 else 120 else
123 ban(c); 121 ban(c);
124 } 122 }
125 if(!sel || (sel && !sel->tags[tsel])) { 123 if((sel = getnext(clients))) {
126 if((sel = getnext(clients))) { 124 higher(sel);
127 higher(sel); 125 focus(sel);
128 focus(sel); 126 }
129 } 127 else
130 else 128 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
131 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
132 }
133 drawall(); 129 drawall();
134 } 130 }
135 131
136 Client * 132 Client *
137 getnext(Client *c) 133 getnext(Client *c)