From 5b46f0f7d8c6bb97f6eef28ee21d762fb65e9c88 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 7 Sep 2014 20:57:26 +0000 Subject: [PATCH] Add screen_ctx to group_ctx, and populate on init. --- calmwm.h | 1 + group.c | 1 + 2 files changed, 2 insertions(+) diff --git a/calmwm.h b/calmwm.h index 31f9165..6ab92e0 100644 --- a/calmwm.h +++ b/calmwm.h @@ -203,6 +203,7 @@ TAILQ_HEAD(cycle_entry_q, client_ctx); struct group_ctx { TAILQ_ENTRY(group_ctx) entry; + struct screen_ctx *sc; struct client_ctx_q clients; char *name; int num; diff --git a/group.c b/group.c index dcea84f..aad482d 100644 --- a/group.c +++ b/group.c @@ -124,6 +124,7 @@ group_init(struct screen_ctx *sc) for (i = 0; i < CALMWM_NGROUPS; i++) { gc = xcalloc(1, sizeof(*gc)); + gc->sc = sc; TAILQ_INIT(&gc->clients); gc->name = xstrdup(num_to_name[i]); gc->num = i;