mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
In movetogroup, check the window's current group and skip client_hide()
if it's the same as the active group. Was in my original movetogroup diff, but it got simplified a little too far. ok oga@
This commit is contained in:
parent
2c29a1de65
commit
8bbc376fd9
1
group.c
1
group.c
@ -152,6 +152,7 @@ group_movetogroup(struct client_ctx *cc, int idx)
|
|||||||
if (idx < 0 || idx >= CALMWM_NGROUPS)
|
if (idx < 0 || idx >= CALMWM_NGROUPS)
|
||||||
err(1, "group_movetogroup: index out of range (%d)", idx);
|
err(1, "group_movetogroup: index out of range (%d)", idx);
|
||||||
|
|
||||||
|
if(Group_active != &Groups[idx])
|
||||||
client_hide(cc);
|
client_hide(cc);
|
||||||
group_add(&Groups[idx], cc);
|
group_add(&Groups[idx], cc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user