apply attachtop patch
parent
89d740ee89
commit
df9d70e011
11
dwl.c
11
dwl.c
|
|
@ -1914,6 +1914,17 @@ 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. */
|
||||||
|
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(&clients, &c->link);
|
||||||
wl_list_insert(&fstack, &c->flink);
|
wl_list_insert(&fstack, &c->flink);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue