init bruv

This commit is contained in:
staticfanfare 2024-02-04 08:45:33 -05:00
parent 9cedeaba2a
commit 6c5b8c80a9
2 changed files with 7 additions and 3 deletions

View File

@ -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

6
dwl.c
View File

@ -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: