diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 08:47:55 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 08:47:55 +0200 |
| commit | d3969634ac3b2e145402295e9833ce149f87fe45 (patch) | |
| tree | 307e162c128d7db825d96a2be8ce9f83ea7ab977 /client.c | |
| parent | removed the if(clients) check from popping code (diff) | |
| download | dwm-d3969634ac3b2e145402295e9833ce149f87fe45.tar.gz dwm-d3969634ac3b2e145402295e9833ce149f87fe45.zip | |
simplified unmanage
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 9 |
1 files changed, 2 insertions, 7 deletions
| @@ -438,13 +438,8 @@ unmanage(Client *c) | |||
| 438 | c->next->prev = c->prev; | 438 | c->next->prev = c->prev; |
| 439 | if(c == clients) | 439 | if(c == clients) |
| 440 | clients = c->next; | 440 | clients = c->next; |
| 441 | if(sel == c) { | 441 | if(sel == c) |
| 442 | sel = getnext(c->next); | 442 | sel = getnext(clients); |
| 443 | if(!sel) | ||
| 444 | sel = getprev(c->prev); | ||
| 445 | if(!sel) | ||
| 446 | sel = clients; | ||
| 447 | } | ||
| 448 | free(c->tags); | 443 | free(c->tags); |
| 449 | free(c); | 444 | free(c); |
| 450 | 445 | ||
