forked from mirror/dwl
fix unset fullscreen for all visible clients when mapping a new one
this also changes our policy about when we unset fullscreen: dwl will unset fullscreen for clients who share tags (and monitor) with a newly mapped client, it does not matter if the clients are visible or not
This commit is contained in:
parent
1a3d89e5b2
commit
686958a4cc
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -1526,7 +1526,7 @@ mapnotify(struct wl_listener *listener, void *data)
|
||||||
unset_fullscreen:
|
unset_fullscreen:
|
||||||
m = c->mon ? c->mon : xytomon(c->geom.x, c->geom.y);
|
m = c->mon ? c->mon : xytomon(c->geom.x, c->geom.y);
|
||||||
wl_list_for_each(w, &clients, link)
|
wl_list_for_each(w, &clients, link)
|
||||||
if (w != c && w->isfullscreen && VISIBLEON(w, m))
|
if (w != c && w->isfullscreen && m == w->mon && (w->tags & c->tags))
|
||||||
setfullscreen(w, 0);
|
setfullscreen(w, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue