From 878c36220ac0d708206fb1b34fa8d1a3a54c56c4 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 15 May 2025 12:06:12 +0800 Subject: [PATCH] opt: optimize caculate win num of current mon in toggleoverview --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 13a2b6f..4cc3005 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -6395,7 +6395,7 @@ void toggleoverview(const Arg *arg) { if (selmon->isoverview) { wl_list_for_each(c, &clients, - link) if (c && c->mon == selmon && !c->isminied) { + link) if (c && c->mon == selmon && !client_is_unmanaged(c) && !client_should_ignore_focus(c) && !c->isminied) { visible_client_number++; } if (visible_client_number > 0) {