From b4bb11eff610c98b0b4399ae707c22d68fafae74 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 11 Dec 2017 20:58:18 +0000 Subject: Unconditionally show prompt on menus, regardless of invocation. --- kbfunc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index 54d2216..e839edd 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.153 2017/12/07 16:25:33 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.154 2017/12/11 20:58:18 okan Exp $ */ #include @@ -466,8 +466,7 @@ kbfunc_menu_client(void *ctx, struct cargs *cargs) } if ((mi = menu_filter(sc, &menuq, - (m) ? NULL : "window", NULL, - ((m) ? CWM_MENU_LIST : 0), + "window", NULL, ((m) ? CWM_MENU_LIST : 0), search_match_client, search_print_client)) != NULL) { cc = (struct client_ctx *)mi->ctx; if (cc->flags & CLIENT_HIDDEN) @@ -500,8 +499,7 @@ kbfunc_menu_cmd(void *ctx, struct cargs *cargs) } if ((mi = menu_filter(sc, &menuq, - (m) ? NULL : "application", NULL, - ((m) ? CWM_MENU_LIST : 0), + "application", NULL, ((m) ? CWM_MENU_LIST : 0), search_match_cmd, search_print_cmd)) != NULL) { cmd = (struct cmd_ctx *)mi->ctx; u_spawn(cmd->path); @@ -527,7 +525,7 @@ kbfunc_menu_group(void *ctx, struct cargs *cargs) } if ((mi = menu_filter(sc, &menuq, - (m) ? NULL : "group", NULL, (CWM_MENU_LIST), + "group", NULL, ((m) ? CWM_MENU_LIST : 0), search_match_group, search_print_group)) != NULL) { gc = (struct group_ctx *)mi->ctx; (group_holds_only_hidden(gc)) ? -- cgit v1.2.3-2-gb3c3