aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-04-08 14:22:20 -0400
committerTony Crisci <tony@dubstepdish.com>2018-04-08 14:22:20 -0400
commit8ecd89b7efad46efa17c3275c5daa3de5943254b (patch)
tree6ab63a1bd3432b885559ec4687209c74b3dc471c
parentae78f6fb9383392915421784cb97910bbbfb60f2 (diff)
address feedback
-rw-r--r--sway/criteria.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index 53461c74..22e9a49b 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -273,7 +273,7 @@ static int regex_cmp(const char *item, const pcre *regex) {
// test a single view if it matches list of criteria tokens (all of them).
static bool criteria_test(struct sway_container *cont, list_t *tokens) {
- if (cont->type < C_CONTAINER) {
+ if (cont->type != C_CONTAINER && cont->type != C_VIEW) {
return false;
}
int matches = 0;