after we toggle a group hidden, it makes no sense to set it as active

(in sticky or non-stick mode), regardless of existing clients assigned
to that group; oga marked this bit XXX in -r1.34 for it didn't seem make
sense then either.

pulled from a diff from from Alexander Polakov.
This commit is contained in:
okan 2013-01-01 14:50:01 +00:00
parent ccbb1f1529
commit afb3648440

View File

@ -269,12 +269,8 @@ group_hidetoggle(struct screen_ctx *sc, int idx)
if (gc->hidden)
group_show(sc, gc);
else {
else
group_hide(sc, gc);
/* XXX wtf? */
if (TAILQ_EMPTY(&gc->clients))
group_setactive(sc, idx);
}
}
void