fixing zoom

master
Anselm R. Garbe 2006-09-05 17:10:48 +02:00
parent a82e7b765e
commit 52a3ab1042
1 changed files with 4 additions and 3 deletions

7
view.c
View File

@ -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;