apply attachtop patch

master
Ryan 2023-09-26 18:43:12 -04:00
parent 89d740ee89
commit df9d70e011
Signed by: ryan
GPG Key ID: 7D7E2E94267DAD95
1 changed files with 12 additions and 1 deletions

13
dwl.c
View File

@ -1914,7 +1914,18 @@ 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);
i = 0;
wl_list_for_each(w, &clients, link) {
if (!VISIBLEON(w, selmon) || c->isfloating)
continue;
p = w;
if (++i >= selmon->nmaster)
break;
}
if (i > 0)
wl_list_insert(&p->link, &c->link);
else
wl_list_insert(&clients, &c->link);
wl_list_insert(&fstack, &c->flink);
/* Set initial monitor, tags, floating status, and focus: