URI: 
       simplified unmanage - dwm - dynamic window manager
  HTML git clone https://git.parazyd.org/dwm
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit d3969634ac3b2e145402295e9833ce149f87fe45
   DIR parent 735ca9ccd61c8e498b04fa6928a42afe24a6b361
  HTML Author: Anselm R.Garbe <arg@10ksloc.org>
       Date:   Fri, 11 Aug 2006 08:47:55 +0200
       
       simplified unmanage
       
       Diffstat:
         M client.c                            |       9 ++-------
       
       1 file changed, 2 insertions(+), 7 deletions(-)
       ---
   DIR diff --git 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);