diff -r 4bee0aa5b286 -r c498da7520c7 client.c --- a/client.c Tue Jul 18 08:18:54 2006 +0200 +++ b/client.c Tue Jul 18 11:38:31 2006 +0200 @@ -66,8 +66,8 @@ if(!sel) return; - if(!(c = getnext(sel->next))) - c = getnext(clients); + if(!(c = getnext(sel->next, tsel))) + c = getnext(clients, tsel); if(c) { higher(c); c->revert = sel; @@ -410,8 +410,8 @@ if(!sel) return; - if(sel == getnext(clients) && sel->next) { - if((c = getnext(sel->next))) + if(sel == getnext(clients, tsel) && sel->next) { + if((c = getnext(sel->next, tsel))) sel = c; }