aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-17 13:46:04 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-20 21:21:40 -0600
commit686958a4cc599fe212d8e1111999cd59a54e9ed6 (patch)
tree5bd8b9d203d0eb8745cc73ce03fb0db7b5bac364
parent1a3d89e5b2c14aa4aebe73a0a0804d14c30386ed (diff)
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
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 6e3b034..4c045c2 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1526,7 +1526,7 @@ mapnotify(struct wl_listener *listener, void *data)
unset_fullscreen:
m = c->mon ? c->mon : xytomon(c->geom.x, c->geom.y);
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);
}