about summary refs log tree commit diff stats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-11 08:47:55 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-11 08:47:55 +0200
commitd3969634ac3b2e145402295e9833ce149f87fe45 (patch)
tree307e162c128d7db825d96a2be8ce9f83ea7ab977 /client.c
parent735ca9ccd61c8e498b04fa6928a42afe24a6b361 (diff)
downloaddwm-d3969634ac3b2e145402295e9833ce149f87fe45.tar.gz
simplified unmanage
Diffstat (limited to 'client.c')
-rw-r--r--client.c9
1 files 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);