From 6c5b8c80a9ae8969695c73c8a22f656978a720d5 Mon Sep 17 00:00:00 2001 From: staticfanfare Date: Sun, 4 Feb 2024 08:45:33 -0500 Subject: [PATCH] init bruv --- config.mk | 4 ++-- dwl.c | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.mk b/config.mk index 906f403..f7fa488 100644 --- a/config.mk +++ b/config.mk @@ -11,5 +11,5 @@ DATADIR = $(PREFIX)/share XWAYLAND = XLIBS = # Uncomment to build XWayland support -#XWAYLAND = -DXWAYLAND -#XLIBS = xcb xcb-icccm +XWAYLAND = -DXWAYLAND +XLIBS = xcb xcb-icccm diff --git a/dwl.c b/dwl.c index 06d7260..896a0ca 100644 --- a/dwl.c +++ b/dwl.c @@ -1604,7 +1604,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: