mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-03 00:06:47 -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)
|
if (!need_join_client || !need_join_client->mon)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if (need_join_client->mon->isoverview)
|
||||||
|
return 0;
|
||||||
|
|
||||||
Client *need_replace_client = NULL;
|
Client *need_replace_client = NULL;
|
||||||
need_replace_client = direction_select(arg);
|
need_replace_client = direction_select(arg);
|
||||||
|
|
||||||
|
|
@ -216,11 +219,15 @@ int32_t groupleave(const Arg *arg) {
|
||||||
if (!selmon)
|
if (!selmon)
|
||||||
return 0;
|
return 0;
|
||||||
Client *tc = arg->tc ? arg->tc : selmon->sel;
|
Client *tc = arg->tc ? arg->tc : selmon->sel;
|
||||||
if (!tc || !tc->isgroupfocusing)
|
if (!tc || !tc->mon || !tc->isgroupfocusing)
|
||||||
return 0;
|
return 0;
|
||||||
if (!tc->group_next && !tc->group_prev) {
|
if (!tc->group_next && !tc->group_prev) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tc->mon->isoverview)
|
||||||
|
return 0;
|
||||||
|
|
||||||
Client *rc = tc->group_next ? tc->group_next : tc->group_prev;
|
Client *rc = tc->group_next ? tc->group_next : tc->group_prev;
|
||||||
|
|
||||||
client_focus_group_member(rc);
|
client_focus_group_member(rc);
|
||||||
|
|
@ -356,13 +363,16 @@ int32_t focusstack(const Arg *arg) {
|
||||||
|
|
||||||
int32_t groupfocus(const Arg *arg) {
|
int32_t groupfocus(const Arg *arg) {
|
||||||
Client *c = arg->tc ? arg->tc : selmon->sel;
|
Client *c = arg->tc ? arg->tc : selmon->sel;
|
||||||
if (!c)
|
if (!c || !c->mon)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!c->group_prev && !c->group_next) {
|
if (!c->group_prev && !c->group_next) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (c->mon->isoverview)
|
||||||
|
return 0;
|
||||||
|
|
||||||
Client *tc = NULL;
|
Client *tc = NULL;
|
||||||
|
|
||||||
if (arg->i == NEXT) {
|
if (arg->i == NEXT) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue