[hackers] [PATCH] simplify client moving on monitor count decrease

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Wed, 4 Jan 2017 18:05:33 +0100

---
 dwm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dwm.c b/dwm.c
index 4eba952..88d49d7 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -1896,9 +1896,8 @@ updategeom(void)
 			/* less monitors available nn < n */
 			for (i = nn; i < n; i++) {
 				for (m = mons; m && m->next; m = m->next);
-				while (m->clients) {
+				while ((c = m->clients)) {
 					dirty = 1;
-					c = m->clients;
 					m->clients = c->next;
 					detachstack(c);
 					c->mon = mons;
-- 
2.10.2
Received on Wed Jan 04 2017 - 18:05:33 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 04 2017 - 18:12:20 CET