From b7a55a15d793d6337695da23a221a4f36ecfefff Mon Sep 17 00:00:00 2001 From: faugusto-oliveira Date: Fri, 8 May 2026 15:16:17 -0300 Subject: [PATCH] Set foreign_toplevel of unfocused monitor windows to false --- src/mango.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mango.c b/src/mango.c index 3ae0182b..d661bdb1 100644 --- a/src/mango.c +++ b/src/mango.c @@ -3700,8 +3700,14 @@ void focusclient(Client *c, int32_t lift) { wl_list_for_each(um, &mons, link) { if (um->wlr_output->enabled && um != selmon && um->sel && !um->sel->iskilling && um->sel->isfocusing) { + um->sel->isfocusing = false; client_set_unfocused_opacity_animation(um->sel); + + if (um->sel->foreign_toplevel) { + wlr_foreign_toplevel_handle_v1_set_activated( + um->sel->foreign_toplevel, false); + } } }