mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-24 13:36:42 -04:00
fix: disable group action in ov mode
This commit is contained in:
parent
a766994a8e
commit
b0e054bf5d
1 changed files with 12 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue