From 6d47373d1b36bac9d9de91596b094074fb4792dc Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Sat, 6 Sep 2014 16:08:59 +0000 Subject: 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. --- app/cwm/mousefunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/cwm/mousefunc.c') diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c index 2cd9d6e3b..8e27461e6 100644 --- a/app/cwm/mousefunc.c +++ b/app/cwm/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.76 2014/09/02 14:08:39 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.77 2014/09/06 16:08:58 okan Exp $ */ #include @@ -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; -- cgit v1.2.3