Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54dc0d5
)
simplified left over re-assignment
author
Anselm R Garbe
<anselm@garbe.us>
Tue, 23 Jun 2009 16:39:42 +0000
(17:39 +0100)
committer
Anselm R Garbe
<anselm@garbe.us>
Tue, 23 Jun 2009 16:39:42 +0000
(17:39 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
4ff4f9d
..
fbda0bb
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1714,18
+1714,12
@@
updategeom(void) {
/* reassign left over clients of disappeared monitors */
for(tm = mons; tm; tm = tm->next) {
/* 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);
}
}
}
}