summary refs log tree commit diff
diff options
context:
space:
mode:
-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;