dwm-meillo

diff view.c @ 433:a6b8994af164

small fix
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 06 Sep 2006 10:03:21 +0200
parents 1e8aba00964e
children b3659c3c5dab
line diff
     1.1 --- a/view.c	Wed Sep 06 09:23:34 2006 +0200
     1.2 +++ b/view.c	Wed Sep 06 10:03:21 2006 +0200
     1.3 @@ -41,7 +41,7 @@
     1.4  static Client *
     1.5  nexttiled(Client *c)
     1.6  {
     1.7 -	for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
     1.8 +	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
     1.9  	return c;
    1.10  }
    1.11  
    1.12 @@ -325,7 +325,7 @@
    1.13  		return;
    1.14  
    1.15  	if((c = sel) == nexttiled(clients))
    1.16 -		if(!(c = nexttiled(c)))
    1.17 +		if(!(c = nexttiled(c->next)))
    1.18  			return;
    1.19  	detach(c);
    1.20  	c->next = clients;