Browse Source

simplified left over re-assignment

main
Anselm R Garbe 15 years ago
parent
commit
7de534192c
1 changed files with 6 additions and 12 deletions
  1. +6
    -12
      dwm.c

+ 6
- 12
dwm.c View File

@ -1714,18 +1714,12 @@ updategeom(void) {
/* reassign left over clients of disappeared monitors */ /* reassign left over clients of disappeared monitors */
for(tm = mons; tm; tm = tm->next) { 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);
} }
} }


Loading…
Cancel
Save