projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
735ca9c
)
simplified unmanage
author
Anselm R.Garbe
<arg@10ksloc.org>
Fri, 11 Aug 2006 06:47:55 +0000
(08:47 +0200)
committer
Anselm R.Garbe
<arg@10ksloc.org>
Fri, 11 Aug 2006 06:47:55 +0000
(08:47 +0200)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index 57ea617ab676624feed62305453fe323cfba9968..80042720c2572b822484c77c0f153c18e5959f06 100644
(file)
--- 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);