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(-) diff --git a/client.c b/client.c index 57ea617..8004272 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 1.4.1-2-gfad0