dwm-meillo

changeset 251:5c72602fe587

simplified unmanage
author Anselm R.Garbe <arg@10ksloc.org>
date Fri, 11 Aug 2006 08:47:55 +0200
parents a9392d33865a
children d1630548c3fe
files client.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/client.c	Fri Aug 11 08:34:42 2006 +0200
     1.2 +++ b/client.c	Fri Aug 11 08:47:55 2006 +0200
     1.3 @@ -438,13 +438,8 @@
     1.4  		c->next->prev = c->prev;
     1.5  	if(c == clients)
     1.6  		clients = c->next;
     1.7 -	if(sel == c) {
     1.8 -		sel = getnext(c->next);
     1.9 -		if(!sel)
    1.10 -			sel = getprev(c->prev);
    1.11 -		if(!sel)
    1.12 -			sel = clients;
    1.13 -	}
    1.14 +	if(sel == c)
    1.15 +		sel = getnext(clients);
    1.16  	free(c->tags);
    1.17  	free(c);
    1.18