From eda0b018d5eb803987711881536aefd71560b8df Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 30 Jun 2025 23:29:24 +0800 Subject: [PATCH] fix: exclusive_focus layer shouldn't be take off focus by client --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index bd02c50..dd0a9df 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -4207,7 +4207,7 @@ void focusclient(Client *c, int lift) { toplevel_from_wlr_surface(old_keyboard_focus_surface, &w, &l); if (type == LayerShell && l->scene->node.enabled && l->layer_surface->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP && - !l->layer_surface->current.keyboard_interactive) { + l == exclusive_focus) { return; } else if (w && w == exclusive_focus && client_wants_focus(w)) { return;