summaryrefslogtreecommitdiff
path: root/app/cwm/mousefunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-01-20 21:34:33 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-01-20 21:34:33 +0000
commitf6715155e783b3619e3f1b9439bad94d9e83cb87 (patch)
treebf6da2763496bb94aa4715776944e1eddc12ebaa /app/cwm/mousefunc.c
parent2d6c7336611ee172bf61009451f9682a6453b432 (diff)
constify and rename some confusing variables around cmdq.
Diffstat (limited to 'app/cwm/mousefunc.c')
-rw-r--r--app/cwm/mousefunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index 3c33aed82..fc4399407 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.66 2014/01/20 18:58:03 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.67 2014/01/20 21:34:32 okan Exp $
*/
#include <sys/param.h>
@@ -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);
}