summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-06-23 17:39:42 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-06-23 17:39:42 +0100
commit7de534192cb53e595f8e29bd9757518b2d9e8860 (patch)
treef439986a5c83d4d211d3e72431a5db7507b5c404
parentfixed tagmon, re-using detach/detachstack and attach/attachstack (diff)
downloaddwm-7de534192cb53e595f8e29bd9757518b2d9e8860.tar.gz
dwm-7de534192cb53e595f8e29bd9757518b2d9e8860.zip
simplified left over re-assignment
Diffstat (limited to '')
-rw-r--r--dwm.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/dwm.c b/dwm.c
index 4ff4f9d..fbda0bb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1714,18 +1714,12 @@ updategeom(void) {
1714 1714
1715 /* reassign left over clients of disappeared monitors */ 1715 /* reassign left over clients of disappeared monitors */
1716 for(tm = mons; tm; tm = tm->next) { 1716 for(tm = mons; tm; tm = tm->next) {
1717 while(tm->clients) { 1717 while((c = tm->clients)) {
1718 c = tm->clients->next; 1718 detach(c);
1719 tm->clients->next = newmons->clients; 1719 detachstack(c);
1720 tm->clients->mon = newmons; 1720 c->mon = newmons;
1721 newmons->clients = tm->clients; 1721 attach(c);
1722 tm->clients = c; 1722 attachstack(c);
1723 }
1724 while(tm->stack) {
1725 c = tm->stack->snext;
1726 tm->stack->snext = newmons->stack;
1727 newmons->sel = newmons->stack = tm->stack;
1728 tm->stack = c;
1729 } 1723 }
1730 } 1724 }
1731 1725