diff options
author | okan | 2014-09-06 16:08:58 +0000 |
---|---|---|
committer | okan | 2014-09-06 16:08:58 +0000 |
commit | e829ebdfb7b6c439829f9be1473e94d9e0724294 (patch) | |
tree | 18ab6acfa2ee70ed2b0bd67c13f31b1e2f2c4d54 /calmwm.h | |
parent | f8d684d6fbeb9cd2b4af04ce87ac3b5b9b8f9da8 (diff) | |
download | cwm-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 '')
-rw-r--r-- | calmwm.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |