From f2eb39ae95c3fef824accf37f6e8faa1037537f6 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 15 May 2025 11:11:08 +0800 Subject: [PATCH] opt: overview should exclude unmanaged and ignore focus window --- src/maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index ff4bc56..dd2453e 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -6411,12 +6411,12 @@ void toggleoverview(const Arg *arg) { // overview到正常视图,还原之前退出的浮动和全屏窗口状态 if (selmon->isoverview) { wl_list_for_each(c, &clients, link) { - if (c) + if (c && !client_is_unmanaged(c) && !client_should_ignore_focus(c) ) overview_backup(c); } } else { wl_list_for_each(c, &clients, link) { - if (c && !c->iskilling && client_surface(c)->mapped) + if (c && !c->iskilling && !client_is_unmanaged(c) && !client_should_ignore_focus(c) && client_surface(c)->mapped) overview_restore(c, &(Arg){.ui = target}); } }