diff options
-rw-r--r-- | group.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/group.c b/group.c index b8bf59a..6644dce 100644 --- a/group.c +++ b/group.c @@ -269,8 +269,12 @@ group_hidetoggle(struct screen_ctx *sc, int idx) if (gc->hidden) group_show(sc, gc); - else + else { group_hide(sc, gc); + /* make clients stick to empty group */ + if (TAILQ_EMPTY(&gc->clients)) + group_setactive(sc, idx); + } } void |