summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2014-09-06 16:08:58 +0000
committerokan <okan>2014-09-06 16:08:58 +0000
commit142f52a0aab29681a46e4ce10eb2618ee99ede95 (patch)
treefe2faee5da2bcd654fe02e117f9c0e6a068bc563 /calmwm.h
parent87d604f119e3598ca2b0311082c89ebb67782f76 (diff)
downloadcwm-142f52a0aab29681a46e4ce10eb2618ee99ede95.tar.gz
cwm-142f52a0aab29681a46e4ce10eb2618ee99ede95.tar.xz
cwm-142f52a0aab29681a46e4ce10eb2618ee99ede95.zip
Rework group names: stash the group name inside the group_ctx as opposed
to having to manage an array outside in screen_ctx for group names and
shortcuts.  Simplifies (and moves bits for) reading, and constructing
data for, EWMH's _NET_DESKTOP_NAMES.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/calmwm.h b/calmwm.h
index 5099f9e..9764a21 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -204,6 +204,7 @@ TAILQ_HEAD(cycle_entry_q, client_ctx);
 struct group_ctx {
 	TAILQ_ENTRY(group_ctx)	 entry;
 	struct client_ctx_q	 clients;
+	char			*name;
 	int			 num;
 };
 TAILQ_HEAD(group_ctx_q, group_ctx);
@@ -242,9 +243,7 @@ struct screen_ctx {
 	struct group_ctx	 groups[CALMWM_NGROUPS];
 	struct group_ctx_q	 groupq;
 	int			 group_hideall;
-	int			 group_nonames;
 	struct group_ctx	*group_active;
-	char 			**group_names;
 };
 TAILQ_HEAD(screen_ctx_q, screen_ctx);