aewl

diff client.c @ 202:f5b952e566da

applied endless loop prevention on zoom()
author arg@10ksloc.org
date Mon, 07 Aug 2006 08:05:04 +0200
parents 592b26ac1acc
children f4f5d000ce7a
line diff
     1.1 --- a/client.c	Mon Aug 07 07:36:36 2006 +0200
     1.2 +++ b/client.c	Mon Aug 07 08:05:04 2006 +0200
     1.3 @@ -469,9 +469,11 @@
     1.4  	if(!sel || (arrange != dotile) || sel->isfloat)
     1.5  		return;
     1.6  
     1.7 -	if(sel == getnext(clients) && sel->next)  {
     1.8 +	if(sel == getnext(clients))  {
     1.9  		if((c = getnext(sel->next)))
    1.10  			sel = c;
    1.11 +		else
    1.12 +			return;
    1.13  	}
    1.14  
    1.15  	/* pop */