aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2016-10-24 20:44:08 +0000
committerokan2016-10-24 20:44:08 +0000
commit1f42c3b0b46e4573d0e562f760211c4033fbd3d9 (patch)
treecc68e9085787f7787262c923668ea50a26f1dbfd /kbfunc.c
parent77bf498e7d350abc7a7a979a01b6169080db29f9 (diff)
downloadcwm-1f42c3b0b46e4573d0e562f760211c4033fbd3d9.tar.gz
Make it clear these are flags.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 9af89d9..76f3d2e 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.133 2016/10/24 17:39:38 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.134 2016/10/24 20:44:08 okan Exp $
*/
#include <sys/types.h>
@@ -312,7 +312,7 @@ kbfunc_menu_client(void *ctx, union arg *arg, enum xev xev)
if ((mi = menu_filter(sc, &menuq,
(m) ? NULL : "window", NULL,
- (m) ? CWM_MENU_LIST : 0,
+ ((m) ? CWM_MENU_LIST : 0),
search_match_client, search_print_client)) != NULL) {
cc = (struct client_ctx *)mi->ctx;
if (cc->flags & CLIENT_HIDDEN)
@@ -347,7 +347,7 @@ kbfunc_menu_cmd(void *ctx, union arg *arg, enum xev xev)
if ((mi = menu_filter(sc, &menuq,
(m) ? NULL : "application", NULL,
- (m) ? CWM_MENU_LIST : 0,
+ ((m) ? CWM_MENU_LIST : 0),
search_match_text, search_print_cmd)) != NULL) {
cmd = (struct cmd_ctx *)mi->ctx;
u_spawn(cmd->path);
@@ -373,7 +373,7 @@ kbfunc_menu_group(void *ctx, union arg *arg, enum xev xev)
}
if ((mi = menu_filter(sc, &menuq,
- (m) ? NULL : "group", NULL, CWM_MENU_LIST,
+ (m) ? NULL : "group", NULL, (CWM_MENU_LIST),
search_match_text, search_print_group)) != NULL) {
gc = (struct group_ctx *)mi->ctx;
(group_holds_only_hidden(gc)) ?
@@ -442,7 +442,7 @@ kbfunc_menu_exec(void *ctx, union arg *arg, enum xev xev)
free(path);
if ((mi = menu_filter(sc, &menuq, label, NULL,
- CWM_MENU_DUMMY | CWM_MENU_FILE,
+ (CWM_MENU_DUMMY | CWM_MENU_FILE),
search_match_exec_path, NULL)) != NULL) {
if (mi->text[0] == '\0')
goto out;
@@ -517,7 +517,7 @@ kbfunc_menu_ssh(void *ctx, union arg *arg, enum xev xev)
free(lbuf);
(void)fclose(fp);
menu:
- if ((mi = menu_filter(sc, &menuq, "ssh", NULL, CWM_MENU_DUMMY,
+ if ((mi = menu_filter(sc, &menuq, "ssh", NULL, (CWM_MENU_DUMMY),
search_match_exec, NULL)) != NULL) {
if (mi->text[0] == '\0')
goto out;
@@ -543,7 +543,7 @@ kbfunc_menu_client_label(void *ctx, union arg *arg, enum xev xev)
TAILQ_INIT(&menuq);
/* dummy is set, so this will always return */
- mi = menu_filter(cc->sc, &menuq, "label", cc->label, CWM_MENU_DUMMY,
+ mi = menu_filter(cc->sc, &menuq, "label", cc->label, (CWM_MENU_DUMMY),
search_match_text, NULL);
if (!mi->abort) {