Stop client_find_visible to loop for ever
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e261ad7b5d
commit
be12562ab7
2
client.c
2
client.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue