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: