summary refs log tree commit diff
path: root/mousefunc.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 /mousefunc.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 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index c65daf3..b96517d 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -265,13 +265,13 @@ mousefunc_menu_cmd(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 (TAILQ_EMPTY(&menuq))
 		return;
 
 	mi = menu_filter(sc, &menuq, NULL, NULL, 0, NULL, NULL);
 	if (mi != NULL)
-		u_spawn(((struct cmd *)mi->ctx)->image);
+		u_spawn(((struct cmd *)mi->ctx)->path);
 
 	menuq_clear(&menuq);
 }