comparison tag.c @ 127:1480e19f6377

using double-linked list in order to get correct prev focus handling
author arg@10ksloc.org
date Thu, 20 Jul 2006 16:54:20 +0200
parents b4b8b4236599
children 30d1302dbe3b
comparison
equal deleted inserted replaced
126:1489f6b97714 127:1480e19f6377
135 135
136 Client * 136 Client *
137 getnext(Client *c, unsigned int t) 137 getnext(Client *c, unsigned int t)
138 { 138 {
139 for(; c && !c->tags[t]; c = c->next); 139 for(; c && !c->tags[t]; c = c->next);
140 return c;
141 }
142
143 Client *
144 getprev(Client *c)
145 {
146 for(; c && !c->tags[tsel]; c = c->prev);
140 return c; 147 return c;
141 } 148 }
142 149
143 void 150 void
144 heretag(Arg *arg) 151 heretag(Arg *arg)