From 8ecd89b7efad46efa17c3275c5daa3de5943254b Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 8 Apr 2018 14:22:20 -0400 Subject: [PATCH] address feedback --- sway/criteria.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/criteria.c b/sway/criteria.c index 53461c74a..22e9a49b6 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;