diff options
author | okan | 2014-01-20 21:34:32 +0000 |
---|---|---|
committer | okan | 2014-01-20 21:34:32 +0000 |
commit | a142331514fc5e300b8bbc97cc5bc71ca7080d7b (patch) | |
tree | 3581772313904b503a72c3509278d66a6837dba2 /mousefunc.c | |
parent | bc4622e632abd877c52d5baa8359e834325a4f23 (diff) | |
download | cwm-a142331514fc5e300b8bbc97cc5bc71ca7080d7b.tar.gz |
constify and rename some confusing variables around cmdq.
Diffstat (limited to '')
-rw-r--r-- | mousefunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c index 3c33aed..fc43994 100644 --- a/mousefunc.c +++ b/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); } |