diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-29 11:27:00 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-29 11:27:00 +0530 |
| commit | c6e5f172a23a885c7ac3867d876026287b9cad64 (patch) | |
| tree | ed5b468d036dc86492dc541028338ac0121eb9d2 | |
| parent | 07e4c047eb7cddf10a3a3ef0f396a6b7db658f1c (diff) | |
(patch): attachbottom.patch
| -rw-r--r-- | dwl.c | 6 | ||||
| -rw-r--r-- | patches/attachbottom.patch | 26 |
2 files changed, 31 insertions, 1 deletions
@@ -1726,7 +1726,11 @@ mapnotify(struct wl_listener *listener, void *data) c->geom.height += 2 * c->bw; /* Insert this client into client lists. */ - wl_list_insert(&clients, &c->link); + if (clients.prev) + // tile at the bottom + wl_list_insert(clients.prev, &c->link); + else + wl_list_insert(&clients, &c->link); wl_list_insert(&fstack, &c->flink); /* Set initial monitor, tags, floating status, and focus: diff --git a/patches/attachbottom.patch b/patches/attachbottom.patch new file mode 100644 index 0000000..d7fdb43 --- /dev/null +++ b/patches/attachbottom.patch @@ -0,0 +1,26 @@ +From 0dda3ed8634154fd3887b71133b451d66a11b61d Mon Sep 17 00:00:00 2001 +From: Ben Collerson <benc@benc.cc> +Date: Thu, 4 Jan 2024 23:31:41 +1000 +Subject: [PATCH] attachbottom + +--- + dwl.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/dwl.c b/dwl.c +index bf763df..12e08e2 100644 +--- a/dwl.c ++++ b/dwl.c +@@ -1605,7 +1605,11 @@ mapnotify(struct wl_listener *listener, void *data) + c->geom.height += 2 * c->bw; + + /* Insert this client into client lists. */ +- wl_list_insert(&clients, &c->link); ++ if (clients.prev) ++ // tile at the bottom ++ wl_list_insert(clients.prev, &c->link); ++ else ++ wl_list_insert(&clients, &c->link); + wl_list_insert(&fstack, &c->flink); + + /* Set initial monitor, tags, floating status, and focus: |
