From 848454ce348f1fd5ff68c85b8cc151321cd762cc Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 30 Jun 2025 22:00:13 +0800 Subject: [PATCH] fix: avoid exclusive_focus layer toggle focus leave by itself --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 3fa750b..a8a7437 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -2658,7 +2658,7 @@ void arrangelayers(Monitor *m) { if (locked || l->layer_surface->current.keyboard_interactive != ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE || - !l->mapped) + !l->mapped || l == exclusive_focus) continue; /* Deactivate the focused client. */ focusclient(NULL, 0);