From 4809b8bc6e400157566115c1fa7f5dd578a28340 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 17 Jan 2008 14:37:27 +0100 Subject: [PATCH] make swapnext cycling --- client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.c b/client.c index bc1593506..18c76dbf8 100644 --- a/client.c +++ b/client.c @@ -683,6 +683,8 @@ uicb_client_swapnext(int screen, char *arg __attribute__ ((unused))) return; 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) { client_list_swap(&globalconf.clients, sel, next);