diff options
Diffstat (limited to 'sys/cmd/dwm/client.c')
-rw-r--r-- | sys/cmd/dwm/client.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/cmd/dwm/client.c b/sys/cmd/dwm/client.c index 383dca9..fa04f5f 100644 --- a/sys/cmd/dwm/client.c +++ b/sys/cmd/dwm/client.c @@ -129,6 +129,16 @@ enqueue(Client *c) } void +attachbottom(Client *c) +{ + Client **tc; + c->next = nil; + for (tc = &c->mon->clients; *tc; tc = &(*tc)->next) + ; + *tc = c; +} + +void attachstack(Client *c) { c->snext = c->mon->stack; @@ -307,7 +317,8 @@ sendtomon(Client *c, Monitor *m) detachstack(c); c->mon = m; c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ - attach(c); + /* attach(c); */ + attachbottom(c); attachstack(c); focus(nil); arrange(nil); |