aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-03-09 19:17:15 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-03-09 19:17:15 +0530
commit577324b45c988e5151ce5622846ae80c962a00bf (patch)
tree1b242b5b0b50805c974cfc934a65e86690c930a7 /dwl.c
parente4abf501157bbca7978ffa35d53283117755859d (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 fa76db2..a7d075d 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1537,7 +1537,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: