simplified unmanage
This commit is contained in:
parent
735ca9ccd6
commit
d3969634ac
9
client.c
9
client.c
|
@ -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) {
|
if(sel == c)
|
||||||
sel = getnext(c->next);
|
sel = getnext(clients);
|
||||||
if(!sel)
|
|
||||||
sel = getprev(c->prev);
|
|
||||||
if(!sel)
|
|
||||||
sel = clients;
|
|
||||||
}
|
|
||||||
free(c->tags);
|
free(c->tags);
|
||||||
free(c);
|
free(c);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user