From 79e432c4a8f3f3c7e1bc374e464d1b881b277f88 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 8 Feb 2014 02:49:30 +0000 Subject: Make sure we cycle through existing client's group membership and set the hidden state on the group; important to know group hidden state after a re-exec or restart of cwm (as easily seen in group menu). --- group.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'group.c') diff --git a/group.c b/group.c index 5d8a044..67d0c41 100644 --- a/group.c +++ b/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: group.c,v 1.86 2014/02/08 02:40:43 okan Exp $ + * $OpenBSD: group.c,v 1.87 2014/02/08 02:49:30 okan Exp $ */ #include @@ -148,6 +148,15 @@ group_init(struct screen_ctx *sc) group_setactive(sc, 1); } +void +group_set_state(struct screen_ctx *sc) +{ + struct group_ctx *gc; + + TAILQ_FOREACH(gc, &sc->groupq, entry) + group_fix_hidden_state(gc); +} + static void group_setactive(struct screen_ctx *sc, long idx) { -- cgit v1.2.3-2-gb3c3