Instead of special casing the 'term' and 'lock' commands, go back to

keeping them hidden; showing them has apparently caused confusion/angst.
This commit is contained in:
okan
2015-08-21 16:05:55 +00:00
parent a79253abdc
commit c96fd247dd
3 changed files with 12 additions and 10 deletions

View File

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