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 /mousefunc.c | |
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-- | mousefunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c index 2cd9d6e..8e27461 100644 --- a/mousefunc.c +++ b/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 <sys/param.h> @@ -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; |