summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2015-06-08 15:41:27 +0000
committerokan <okan>2015-06-08 15:41:27 +0000
commite9750e2144a48dc10cab60dd4a07f537b6dcd20d (patch)
tree1a7a92efcfb6ec57ac91af5af1842cd72c3626b8 /mousefunc.c
parent8888c44888c65f1ba76b1ddc5e37dbc644856642 (diff)
downloadcwm-e9750e2144a48dc10cab60dd4a07f537b6dcd20d.tar.gz
cwm-e9750e2144a48dc10cab60dd4a07f537b6dcd20d.tar.xz
cwm-e9750e2144a48dc10cab60dd4a07f537b6dcd20d.zip
switch to search_print_client() as the print callback since it will now display labels as well
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 718a577..e48833c 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -204,23 +204,18 @@ mousefunc_menu_unhide(struct client_ctx *cc, union arg *arg)
 	struct client_ctx	*old_cc;
 	struct menu		*mi;
 	struct menu_q		 menuq;
-	char			*wname;
 
 	old_cc = client_current();
 
 	TAILQ_INIT(&menuq);
 	TAILQ_FOREACH(cc, &sc->clientq, entry) {
 		if (cc->flags & CLIENT_HIDDEN) {
-			wname = (cc->label) ? cc->label : cc->name;
-			if (wname == NULL)
-				continue;
-			menuq_add(&menuq, cc, "(%d) %s",
-			    cc->group ? cc->group->num : 0, wname);
+			menuq_add(&menuq, cc, NULL);
 		}
 	}
 
 	if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST,
-	    NULL, NULL)) != NULL) {
+	    NULL, search_print_client)) != NULL) {
 		cc = (struct client_ctx *)mi->ctx;
 		client_unhide(cc);
 		if (old_cc != NULL)