From 52a3ab10423a4133e38281e4e19769cd3c2ed931 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 5 Sep 2006 17:10:48 +0200 Subject: fixing zoom --- view.c | 7 ++++--- 1 file 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; -- cgit v1.2.3-13-gbd6f