JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
simplified unmanage
authorAnselm R.Garbe <arg@10ksloc.org>
Fri, 11 Aug 2006 06:47:55 +0000 (08:47 +0200)
committerAnselm R.Garbe <arg@10ksloc.org>
Fri, 11 Aug 2006 06:47:55 +0000 (08:47 +0200)
client.c

index 57ea617..8004272 100644 (file)
--- 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);