From 3a57e326867d7d7c1babb9bcaf9d70e7f66c1863 Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sat, 5 Sep 2026 13:34:02 +0200 Subject: Added attachbottom --- dwl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 6136fa4..37e79a0 100644 --- a/dwl.c +++ b/dwl.c @@ -2220,7 +2220,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: -- cgit