constify and rename some confusing variables around cmdq.

This commit is contained in:
okan
2014-01-20 21:34:32 +00:00
parent 7263fb4c84
commit d91571c567
5 changed files with 21 additions and 20 deletions

View File

@ -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);
}