From d3969634ac3b2e145402295e9833ce149f87fe45 Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Fri, 11 Aug 2006 08:47:55 +0200 Subject: simplified unmanage --- client.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 57ea617a..80042720 100644 --- a/client.c +++ b/client.c @@ -438,13 +438,8 @@ unmanage(Client *c) c->next->prev = c->prev; if(c == clients) clients = c->next; - if(sel == c) { - sel = getnext(c->next); - if(!sel) - sel = getprev(c->prev); - if(!sel) - sel = clients; - } + if(sel == c) + sel = getnext(clients); free(c->tags); free(c); -- cgit v1.2.3