Browse Source

simplified unmanage

master
Anselm R.Garbe 19 years ago
parent
commit
d3969634ac
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      client.c

+ 2
- 7
client.c View File

@ -438,13 +438,8 @@ unmanage(Client *c)
c->next->prev = c->prev; c->next->prev = c->prev;
if(c == clients) if(c == clients)
clients = c->next; 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->tags);
free(c); free(c);


Loading…
Cancel
Save