summary refs log tree commit diff
path: root/mousefunc.c
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 /mousefunc.c
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 'mousefunc.c')
-rw-r--r--mousefunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mousefunc.c b/mousefunc.c
index c7b283a..2499ae1 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -192,7 +192,7 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg)
 			continue;
 		menuq_add(&menuq, gc,
 		    group_hidden_state(gc) ? "%d: [%s]" : "%d: %s",
-		    gc->num, sc->group_names[gc->num]);
+		    gc->num, gc->name);
 	}
 	if (TAILQ_EMPTY(&menuq))
 		return;