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}); } }