From 335a8fa2b1ee8c3022a5c85600da44e693ce6133 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 14 May 2025 11:29:42 +0800 Subject: [PATCH] opt: focustop need judge surface want focus --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 9272e1c..9241567 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -3877,7 +3877,7 @@ Client * // 0.5 focustop(Monitor *m) { Client *c; wl_list_for_each(c, &fstack, flink) { - if (c->iskilling) + if (c->iskilling || !client_surface_wants_focus(c)) continue; if (VISIBLEON(c, m)) return c;