aboutsummaryrefslogtreecommitdiff
path: root/patches/attachbottom.patch
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-05-05 14:16:53 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-05-05 14:16:53 +0530
commit2ff92ffad11cad902dad037c24780e0dbf451551 (patch)
treeecdf0fd545460949085a1b9b10923a3eaf08e9e7 /patches/attachbottom.patch
parentc17629aaa71380618c356e8083c7b38a756948d8 (diff)
Revert "monfig patch"
This reverts commit 18e363b5bb655859660eb6177fadc67192914f61.
Diffstat (limited to '')
-rw-r--r--patches/attachbottom.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/attachbottom.patch b/patches/attachbottom.patch
new file mode 100644
index 0000000..7c0ad52
--- /dev/null
+++ b/patches/attachbottom.patch
@@ -0,0 +1,26 @@
+From 396531c8e7905cb226be0a4c3cddc60726fa2794 Mon Sep 17 00:00:00 2001
+From: Dmitry Zakharchenko <dmitz@disroot.org>
+Date: Tue, 3 Jan 2023 20:01:34 +0200
+Subject: [PATCH] attachbottom: sync with 0.4
+
+---
+ dwl.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/dwl.c b/dwl.c
+index 19bb6ce34..7f940c45f 100644
+--- a/dwl.c
++++ b/dwl.c
+@@ -1511,7 +1511,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: