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 = XWAYLAND =
XLIBS = XLIBS =
# Uncomment to build XWayland support # Uncomment to build XWayland support
#XWAYLAND = -DXWAYLAND XWAYLAND = -DXWAYLAND
#XLIBS = xcb xcb-icccm XLIBS = xcb xcb-icccm

4
dwl.c
View File

@ -1604,6 +1604,10 @@ mapnotify(struct wl_listener *listener, void *data)
c->geom.height += 2 * c->bw; c->geom.height += 2 * c->bw;
/* Insert this client into client lists. */ /* Insert this client into client lists. */
if (clients.prev)
// tile at the bottom
wl_list_insert(clients.prev, &c->link);
else
wl_list_insert(&clients, &c->link); wl_list_insert(&clients, &c->link);
wl_list_insert(&fstack, &c->flink); wl_list_insert(&fstack, &c->flink);