summaryrefslogtreecommitdiff
path: root/app/cwm/mousefunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-09-06 16:08:59 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-09-06 16:08:59 +0000
commit6d47373d1b36bac9d9de91596b094074fb4792dc (patch)
treee8ae8d3e6d841e1405093ddca99a69eccbcb52cf /app/cwm/mousefunc.c
parent92206ceebab816731dc70a6ee1ed8cb39c759fee (diff)
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 'app/cwm/mousefunc.c')
-rw-r--r--app/cwm/mousefunc.c4
1 files changed, 2 insertions, 2 deletions
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 <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;