diff options
author | okan | 2015-08-21 16:05:55 +0000 |
---|---|---|
committer | okan | 2015-08-21 16:05:55 +0000 |
commit | 8f9cade79c80625750ce285f4715c52c9e646f72 (patch) | |
tree | cd019a3ad03f71891c3aa20690fcd92e5e22750a /mousefunc.c | |
parent | fc54489831cb2a1eb5b065831e25c6b9eb35fefe (diff) | |
download | cwm-8f9cade79c80625750ce285f4715c52c9e646f72.tar.gz |
Instead of special casing the 'term' and 'lock' commands, go back to
keeping them hidden; showing them has apparently caused confusion/angst.
Diffstat (limited to '')
-rw-r--r-- | mousefunc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c index b27ef5b..2a23985 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.96 2015/07/12 14:31:47 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.97 2015/08/21 16:05:55 okan Exp $ */ #include <sys/types.h> @@ -233,8 +233,12 @@ mousefunc_menu_cmd(struct client_ctx *cc, union arg *arg) struct menu_q menuq; TAILQ_INIT(&menuq); - TAILQ_FOREACH(cmd, &Conf.cmdq, entry) + TAILQ_FOREACH(cmd, &Conf.cmdq, entry) { + if ((strcmp(cmd->name, "lock") == 0) || + (strcmp(cmd->name, "term") == 0)) + continue; menuq_add(&menuq, cmd, NULL); + } if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST, NULL, search_print_cmd)) != NULL) |