diff options
author | Anselm R Garbe <anselm@garbe.us> | 2009-06-23 17:39:42 +0100 |
---|---|---|
committer | Anselm R Garbe <anselm@garbe.us> | 2009-06-23 17:39:42 +0100 |
commit | 7de534192cb53e595f8e29bd9757518b2d9e8860 (patch) | |
tree | f439986a5c83d4d211d3e72431a5db7507b5c404 /dwm.c | |
parent | 54dc0d542cbc8eada2250fe80d161a272f30ddac (diff) | |
download | dwm-7de534192cb53e595f8e29bd9757518b2d9e8860.tar.gz dwm-7de534192cb53e595f8e29bd9757518b2d9e8860.tar.bz2 dwm-7de534192cb53e595f8e29bd9757518b2d9e8860.zip |
simplified left over re-assignment
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -1714,18 +1714,12 @@ updategeom(void) { /* reassign left over clients of disappeared monitors */ for(tm = mons; tm; tm = tm->next) { - while(tm->clients) { - c = tm->clients->next; - tm->clients->next = newmons->clients; - tm->clients->mon = newmons; - newmons->clients = tm->clients; - tm->clients = c; - } - while(tm->stack) { - c = tm->stack->snext; - tm->stack->snext = newmons->stack; - newmons->sel = newmons->stack = tm->stack; - tm->stack = c; + while((c = tm->clients)) { + detach(c); + detachstack(c); + c->mon = newmons; + attach(c); + attachstack(c); } } |