simplified unmanage
d3969634
1 file(s) · +2 −7
| 438 | 438 | c->next->prev = c->prev; |
|
| 439 | 439 | if(c == clients) |
|
| 440 | 440 | clients = c->next; |
|
| 441 | - | if(sel == c) { |
|
| 442 | - | sel = getnext(c->next); |
|
| 443 | - | if(!sel) |
|
| 444 | - | sel = getprev(c->prev); |
|
| 445 | - | if(!sel) |
|
| 446 | - | sel = clients; |
|
| 447 | - | } |
|
| 441 | + | if(sel == c) |
|
| 442 | + | sel = getnext(clients); |
|
| 448 | 443 | free(c->tags); |
|
| 449 | 444 | free(c); |
|
| 450 | 445 |