aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2014-09-06 16:08:58 +0000
committerokan2014-09-06 16:08:58 +0000
commite829ebdfb7b6c439829f9be1473e94d9e0724294 (patch)
tree18ab6acfa2ee70ed2b0bd67c13f31b1e2f2c4d54 /calmwm.h
parentf8d684d6fbeb9cd2b4af04ce87ac3b5b9b8f9da8 (diff)
downloadcwm-e829ebdfb7b6c439829f9be1473e94d9e0724294.tar.gz
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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/calmwm.h b/calmwm.h
index ae73818..d99865a 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.h,v 1.266 2014/09/01 18:04:58 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.267 2014/09/06 16:08:58 okan Exp $
*/
#ifndef _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);