[hackers] [dwm] simplified left over re-assignment || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Tue, 23 Jun 2009 19:48:37 +0000 (UTC)

changeset: 1410:1bfaa3ddc995
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Tue Jun 23 17:39:42 2009 +0100
files: dwm.c
description:
simplified left over re-assignment

diff -r ed5530a91efe -r 1bfaa3ddc995 dwm.c
--- a/dwm.c Tue Jun 23 17:34:20 2009 +0100
+++ b/dwm.c Tue Jun 23 17:39:42 2009 +0100
@@ -1714,18 +1714,12 @@
 
         /* 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);
                 }
         }
 
Received on Tue Jun 23 2009 - 19:48:37 UTC

This archive was generated by hypermail 2.2.0 : Tue Jun 23 2009 - 20:00:10 UTC