diff options
author | okan | 2017-12-11 20:58:18 +0000 |
---|---|---|
committer | okan | 2017-12-11 20:58:18 +0000 |
commit | b4bb11eff610c98b0b4399ae707c22d68fafae74 (patch) | |
tree | 5c766e59a5ac6bd35e25e805c7ac8d19db873154 /kbfunc.c | |
parent | 2cc69c661a1ffb9a7de17e1a58657701edda41a6 (diff) | |
download | cwm-b4bb11eff610c98b0b4399ae707c22d68fafae74.tar.gz |
Unconditionally show prompt on menus, regardless of invocation.
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 <sys/types.h> @@ -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)) ? |