mirror of
https://github.com/tiyn/dwl.git
synced 2025-11-13 13:59:45 +01:00
Merge branch 'attachtop'
This commit is contained in:
13
dwl.c
13
dwl.c
@@ -2110,7 +2110,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:
|
||||
|
||||
Reference in New Issue
Block a user