From 46f2dd293bdc4d580cd7d02bd6741c8edcc17db9 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 17 Jun 2026 23:24:55 +0800 Subject: [PATCH] opt: direction find exclude monocle hide client --- src/fetch/client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fetch/client.h b/src/fetch/client.h index fb50c798..49b45490 100644 --- a/src/fetch/client.h +++ b/src/fetch/client.h @@ -190,6 +190,8 @@ Client *find_client_by_direction(Client *tc, const Arg *arg, continue; if (c->isunglobal) continue; + if (c->is_monocle_hide) + continue; if (!config.focus_cross_monitor && c->mon != tc->mon) continue; if (!(c->tags & c->mon->tagset[c->mon->seltags])) @@ -310,7 +312,7 @@ Client *direction_select(const Arg *arg) { Client *focustop(Monitor *m) { Client *c = NULL; wl_list_for_each(c, &fstack, flink) { - if (c->iskilling || c->isunglobal) + if (c->iskilling || c->isunglobal || c->is_monocle_hide) continue; if (VISIBLEON(c, m)) return c;