make swapnext cycling
This commit is contained in:
parent
011f771398
commit
4809b8bc6e
2
client.c
2
client.c
|
@ -683,6 +683,8 @@ uicb_client_swapnext(int screen, char *arg __attribute__ ((unused)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for(next = sel->next; next && !client_isvisible(next, screen); next = next->next);
|
for(next = sel->next; next && !client_isvisible(next, screen); next = next->next);
|
||||||
|
if(!next)
|
||||||
|
for(next = globalconf.clients; next && !client_isvisible(next, screen); next = next->next);
|
||||||
if(next)
|
if(next)
|
||||||
{
|
{
|
||||||
client_list_swap(&globalconf.clients, sel, next);
|
client_list_swap(&globalconf.clients, sel, next);
|
||||||
|
|
Loading…
Reference in New Issue