opt: direction find exclude monocle hide client

This commit is contained in:
DreamMaoMao 2026-06-17 23:24:55 +08:00
parent 27df2ea469
commit 46f2dd293b

View file

@ -190,6 +190,8 @@ Client *find_client_by_direction(Client *tc, const Arg *arg,
continue; continue;
if (c->isunglobal) if (c->isunglobal)
continue; continue;
if (c->is_monocle_hide)
continue;
if (!config.focus_cross_monitor && c->mon != tc->mon) if (!config.focus_cross_monitor && c->mon != tc->mon)
continue; continue;
if (!(c->tags & c->mon->tagset[c->mon->seltags])) if (!(c->tags & c->mon->tagset[c->mon->seltags]))
@ -310,7 +312,7 @@ Client *direction_select(const Arg *arg) {
Client *focustop(Monitor *m) { Client *focustop(Monitor *m) {
Client *c = NULL; Client *c = NULL;
wl_list_for_each(c, &fstack, flink) { wl_list_for_each(c, &fstack, flink) {
if (c->iskilling || c->isunglobal) if (c->iskilling || c->isunglobal || c->is_monocle_hide)
continue; continue;
if (VISIBLEON(c, m)) if (VISIBLEON(c, m))
return c; return c;