summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2013-12-02 19:30:27 +0000
committerokan <okan>2013-12-02 19:30:27 +0000
commitd1b232fe8111cb748383727528aa90bbe740b507 (patch)
tree08cdf2c0cb03558e2237df638fcd31c45a3de3c4 /mousefunc.c
parent6b72168d9243bed163cd90d6271b5df7d151f6e8 (diff)
downloadcwm-d1b232fe8111cb748383727528aa90bbe740b507.tar.gz
cwm-d1b232fe8111cb748383727528aa90bbe740b507.tar.xz
cwm-d1b232fe8111cb748383727528aa90bbe740b507.zip
Prepend the group shortcut in the client search menu; from Thomas Adam.
Likewise, prepend shortcut in unhide menu.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mousefunc.c b/mousefunc.c
index fbcc764..05cdfe2 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -231,7 +231,8 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg)
 				continue;
 
 			mi = xcalloc(1, sizeof(*mi));
-			(void)strlcpy(mi->text, wname, sizeof(mi->text));
+			(void)snprintf(mi->text, sizeof(mi->text),
+			    "(%d) %s", cc->group->shortcut, wname);
 			mi->ctx = cc;
 			TAILQ_INSERT_TAIL(&menuq, mi, entry);
 		}