From b0e054bf5d66baf31643570d8a535a1834936151 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 23 Jun 2026 00:24:28 +0800 Subject: [PATCH] fix: disable group action in ov mode --- src/dispatch/bind_define.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index f2a73230..14a66623 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -168,6 +168,9 @@ int32_t groupjoin(const Arg *arg) { if (!need_join_client || !need_join_client->mon) return 0; + if (need_join_client->mon->isoverview) + return 0; + Client *need_replace_client = NULL; need_replace_client = direction_select(arg); @@ -216,11 +219,15 @@ int32_t groupleave(const Arg *arg) { if (!selmon) return 0; Client *tc = arg->tc ? arg->tc : selmon->sel; - if (!tc || !tc->isgroupfocusing) + if (!tc || !tc->mon || !tc->isgroupfocusing) return 0; if (!tc->group_next && !tc->group_prev) { return 0; } + + if (tc->mon->isoverview) + return 0; + Client *rc = tc->group_next ? tc->group_next : tc->group_prev; client_focus_group_member(rc); @@ -356,13 +363,16 @@ int32_t focusstack(const Arg *arg) { int32_t groupfocus(const Arg *arg) { Client *c = arg->tc ? arg->tc : selmon->sel; - if (!c) + if (!c || !c->mon) return 0; if (!c->group_prev && !c->group_next) { return 0; } + if (c->mon->isoverview) + return 0; + Client *tc = NULL; if (arg->i == NEXT) {