opt: Adopt a more flexible way to control window hiding

This commit is contained in:
DreamMaoMao 2026-06-29 09:07:13 +08:00
parent 5686bdc95c
commit b73cd4ef90
5 changed files with 21 additions and 45 deletions

View file

@ -188,6 +188,8 @@ Client *find_client_by_direction(Client *tc, const Arg *arg,
continue;
if (!findfloating && c->isfloating)
continue;
if (c->is_logic_hide)
continue;
if (c->isunglobal)
continue;
if (!config.focus_cross_monitor && c->mon != tc->mon)
@ -442,7 +444,7 @@ Client *get_focused_stack_client(Client *sc, Client *custom_focus_client) {
return sc;
wl_list_for_each(tc, &fstack, flink) {
if (tc->iskilling || tc->isunglobal)
if (tc->iskilling || tc->isunglobal || tc->is_logic_hide)
continue;
if (!VISIBLEON(tc, sc->mon))
continue;