dwm-meillo

changeset 433:a6b8994af164

small fix
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 06 Sep 2006 10:03:21 +0200
parents 0f94ee451f6c
children 265dc4ae3354
files main.c view.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/main.c	Wed Sep 06 09:23:34 2006 +0200
     1.2 +++ b/main.c	Wed Sep 06 10:03:21 2006 +0200
     1.3 @@ -55,6 +55,7 @@
     1.4  	XDestroyWindow(dpy, barwin);
     1.5  	XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
     1.6  	XSync(dpy, False);
     1.7 +	free(seltag);
     1.8  }
     1.9  
    1.10  static void
     2.1 --- a/view.c	Wed Sep 06 09:23:34 2006 +0200
     2.2 +++ b/view.c	Wed Sep 06 10:03:21 2006 +0200
     2.3 @@ -41,7 +41,7 @@
     2.4  static Client *
     2.5  nexttiled(Client *c)
     2.6  {
     2.7 -	for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
     2.8 +	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
     2.9  	return c;
    2.10  }
    2.11  
    2.12 @@ -325,7 +325,7 @@
    2.13  		return;
    2.14  
    2.15  	if((c = sel) == nexttiled(clients))
    2.16 -		if(!(c = nexttiled(c)))
    2.17 +		if(!(c = nexttiled(c->next)))
    2.18  			return;
    2.19  	detach(c);
    2.20  	c->next = clients;