summaryrefslogtreecommitdiff
path: root/openbox/actions/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/actions/if.c')
-rw-r--r--openbox/actions/if.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/actions/if.c b/openbox/actions/if.c
index a083d485..67d067e2 100644
--- a/openbox/actions/if.c
+++ b/openbox/actions/if.c
@@ -327,7 +327,10 @@ static gboolean run_func_if(ObActionsData *data, gpointer options)
}
/* If there's no client to query, then false. */
- is_true &= query_target != NULL;
+ if (!query_target) {
+ is_true = FALSE;
+ break;
+ }
if (q->shaded_on)
is_true &= query_target->shaded;