From 2e80e18c190b737338f8000aafe685719b4899a1 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 5 Oct 2021 07:54:53 -0700 Subject: feat(dwm): spatial movement and attach bottom --- sys/cmd/dwm/client.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'sys/cmd/dwm/client.c') 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 @@ -128,6 +128,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) { @@ -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); -- cgit v1.2.1