summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2014-09-07 20:57:26 +0000
committerokan <okan>2014-09-07 20:57:26 +0000
commit5b46f0f7d8c6bb97f6eef28ee21d762fb65e9c88 (patch)
treef818083d99a4113fe47858dfb5a92604cb92e110
parent3d12b6d1d940d40c1298ae03e519c8ac4a9a1407 (diff)
downloadcwm-5b46f0f7d8c6bb97f6eef28ee21d762fb65e9c88.tar.gz
cwm-5b46f0f7d8c6bb97f6eef28ee21d762fb65e9c88.tar.xz
cwm-5b46f0f7d8c6bb97f6eef28ee21d762fb65e9c88.zip
Add screen_ctx to group_ctx, and populate on init.
-rw-r--r--calmwm.h1
-rw-r--r--group.c1
2 files changed, 2 insertions, 0 deletions
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;