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.
This commit is contained in:
okan
2014-09-06 16:08:58 +00:00
parent 87d604f119
commit 142f52a0aa
5 changed files with 41 additions and 64 deletions

View File

@ -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;