mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
put back r1.68 which allows an empty group to be sticky; behavior
change noticed by Thomas Pfaff and diagnosis why we need to group_setactive in this case by Alexander Polakov. replace XXX with a useful comment.
This commit is contained in:
parent
62acbee4b3
commit
47aa485fa2
6
group.c
6
group.c
@ -269,8 +269,12 @@ group_hidetoggle(struct screen_ctx *sc, int idx)
|
|||||||
|
|
||||||
if (gc->hidden)
|
if (gc->hidden)
|
||||||
group_show(sc, gc);
|
group_show(sc, gc);
|
||||||
else
|
else {
|
||||||
group_hide(sc, gc);
|
group_hide(sc, gc);
|
||||||
|
/* make clients stick to empty group */
|
||||||
|
if (TAILQ_EMPTY(&gc->clients))
|
||||||
|
group_setactive(sc, idx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user