summary refs log tree commit diff
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan <okan>2014-01-20 21:34:32 +0000
committerokan <okan>2014-01-20 21:34:32 +0000
commitd91571c567fc74c422d766fd2613c9ae23ccbc36 (patch)
treed5aa253fdcbb4860caee0dd4b7af7f11017dbcfa /kbfunc.c
parent7263fb4c8457631a921c20a93bb339dfe638bb34 (diff)
downloadcwm-d91571c567fc74c422d766fd2613c9ae23ccbc36.tar.gz
cwm-d91571c567fc74c422d766fd2613c9ae23ccbc36.tar.xz
cwm-d91571c567fc74c422d766fd2613c9ae23ccbc36.zip
constify and rename some confusing variables around cmdq.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 5f73129..1d8837c 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -178,11 +178,11 @@ kbfunc_menu_search(struct client_ctx *cc, union arg *arg)
 
 	TAILQ_INIT(&menuq);
 	TAILQ_FOREACH(cmd, &Conf.cmdq, entry)
-		menuq_add(&menuq, cmd, "%s", cmd->label);
+		menuq_add(&menuq, cmd, "%s", cmd->name);
 
 	if ((mi = menu_filter(sc, &menuq, "application", NULL, 0,
 	    search_match_text, NULL)) != NULL)
-		u_spawn(((struct cmd *)mi->ctx)->image);
+		u_spawn(((struct cmd *)mi->ctx)->path);
 
 	menuq_clear(&menuq);
 }