opt: optimize caculate win num of current mon in toggleoverview

This commit is contained in:
DreamMaoMao 2025-05-15 12:06:12 +08:00
parent 1098c15f27
commit 878c36220a

View file

@ -6395,7 +6395,7 @@ void toggleoverview(const Arg *arg) {
if (selmon->isoverview) { if (selmon->isoverview) {
wl_list_for_each(c, &clients, 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++; visible_client_number++;
} }
if (visible_client_number > 0) { if (visible_client_number > 0) {