dwm-meillo

diff view.c @ 426:21df917c2719

fixing zoom
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 05 Sep 2006 17:10:48 +0200
parents 67f37b93ac73
children e58cd202c4e9
line diff
     1.1 --- a/view.c	Tue Sep 05 16:11:52 2006 +0200
     1.2 +++ b/view.c	Tue Sep 05 17:10:48 2006 +0200
     1.3 @@ -317,9 +317,10 @@
     1.4  	if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
     1.5  		return;
     1.6  
     1.7 -	if((c = sel)  == getnext(clients))
     1.8 -		if(!(c = getnext(c->next)))
     1.9 -			return;
    1.10 +	if((c = sel) == getnext(clients))
    1.11 +		for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
    1.12 +	if(!c)
    1.13 +		return;
    1.14  	detach(c);
    1.15  	c->next = clients;
    1.16  	clients->prev = c;