tsimplified left over re-assignment - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7de534192cb53e595f8e29bd9757518b2d9e8860
(DIR) parent 54dc0d542cbc8eada2250fe80d161a272f30ddac
(HTM) Author: Anselm R Garbe <anselm@garbe.us>
Date: Tue, 23 Jun 2009 17:39:42 +0100
simplified left over re-assignment
Diffstat:
M dwm.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
---
(DIR) diff --git a/dwm.c b/dwm.c
t@@ -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);
}
}