about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-05 17:10:48 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-05 17:10:48 +0200
commit52a3ab10423a4133e38281e4e19769cd3c2ed931 (patch)
tree9ffeaf23526df5388f161d0107cce46e803fe3dc /view.c
parenta82e7b765e8da9fedb8fae6b102796f0494a4f5e (diff)
downloaddwm-52a3ab10423a4133e38281e4e19769cd3c2ed931.tar.gz
fixing zoom
Diffstat (limited to 'view.c')
-rw-r--r--view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/view.c b/view.c
index c005a33..d61d0de 100644
--- a/view.c
+++ b/view.c
@@ -317,9 +317,10 @@ zoom(Arg *arg)
 	if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
 		return;
 
-	if((c = sel)  == getnext(clients))
-		if(!(c = getnext(c->next)))
-			return;
+	if((c = sel) == getnext(clients))
+		for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
+	if(!c)
+		return;
 	detach(c);
 	c->next = clients;
 	clients->prev = c;