aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-02-01 18:19:57 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-02-01 18:19:57 +0530
commitd7850a5ff37ca70f4463e285ec8afe4e452d9ad1 (patch)
treea13b5bc2480e23453c9363171e6b7845af3c6a10 /dwl.c
parent79b6988e04216f1cff7761f3c625c9b47265a39a (diff)
attachbottom
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 22607a9..4193d02 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1588,7 +1588,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: