Stop client_find_visible to loop for ever

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-23 20:58:39 +01:00
parent e261ad7b5d
commit be12562ab7
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ client_find_visible(Client *sel, Bool reverse)
/* look for previous or next starting at sel */ /* look for previous or next starting at sel */
for(next = client_iter(&globalconf.clients, sel); for(next = client_iter(&globalconf.clients, sel);
next && (next->skip || !client_isvisible(next, sel->screen)); next && next != sel && (next->skip || !client_isvisible(next, sel->screen));
next = client_iter(&globalconf.clients, next)); next = client_iter(&globalconf.clients, next));
return next; return next;