aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2017-12-11 20:58:18 +0000
committerokan2017-12-11 20:58:18 +0000
commitb4bb11eff610c98b0b4399ae707c22d68fafae74 (patch)
tree5c766e59a5ac6bd35e25e805c7ac8d19db873154 /kbfunc.c
parent2cc69c661a1ffb9a7de17e1a58657701edda41a6 (diff)
downloadcwm-b4bb11eff610c98b0b4399ae707c22d68fafae74.tar.gz
Unconditionally show prompt on menus, regardless of invocation.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c10
1 files changed, 4 insertions, 6 deletions
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 <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)) ?