diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-05 07:54:53 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-05 07:54:53 -0700 |
commit | 2e80e18c190b737338f8000aafe685719b4899a1 (patch) | |
tree | ddcc74b7cf9c56fe2ed9aa7b138a1396e5923fc4 /sys/cmd/dwm/client.c | |
parent | 08a6da05412961ddf629415a92749b02d875fa62 (diff) |
feat(dwm): spatial movement and attach bottom
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); |