changeset 202:f5b952e566da

applied endless loop prevention on zoom()
author arg@10ksloc.org
date Mon, 07 Aug 2006 08:05:04 +0200 (2006-08-07)
parents 124671c251ee
children 81498863dc30
files client.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client.c	Mon Aug 07 07:36:36 2006 +0200
+++ b/client.c	Mon Aug 07 08:05:04 2006 +0200
@@ -469,9 +469,11 @@
 	if(!sel || (arrange != dotile) || sel->isfloat)
 		return;
 
-	if(sel == getnext(clients) && sel->next)  {
+	if(sel == getnext(clients))  {
 		if((c = getnext(sel->next)))
 			sel = c;
+		else
+			return;
 	}
 
 	/* pop */