mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
parent
ccbb1f1529
commit
afb3648440
6
group.c
6
group.c
@ -269,12 +269,8 @@ 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);
|
||||||
/* XXX wtf? */
|
|
||||||
if (TAILQ_EMPTY(&gc->clients))
|
|
||||||
group_setactive(sc, idx);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user