From 8ab0c16f3c6fccc8000e03fd84b048303b421294 Mon Sep 17 00:00:00 2001 From: save196 Date: Sun, 8 Nov 2026 16:18:13 +0200 Subject: [PATCH] fix the size of fullscreen clients on hidden tags when outputs change Clients moved by closemon() get a stale geometry, and updatemons() only corrected the visible fullscreen client, not those on hidden tags. --- dwl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index acb1b05..e4c1ce2 100644 --- a/dwl.c +++ b/dwl.c @@ -3355,8 +3355,9 @@ updatemons(struct wl_listener *listener, void *data) /* Don't move clients to the left output when plugging monitors */ arrange(m); /* make sure fullscreen clients have the right size */ - if ((c = focustop(m)) && c->isfullscreen) - resize(c, m->m, 0); + wl_list_for_each(c, &clients, link) + if (c->mon == m && c->isfullscreen) + resize(c, m->m, 0); /* Try to re-set the gamma LUT when updating monitors, * it's only really needed when enabling a disabled output, but meh. */