From 70b33342fec0e0cc720cbb62a059c40a34c5314f Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 8 Apr 2018 12:13:09 -0400 Subject: [PATCH] criteria match containers --- sway/criteria.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/criteria.c b/sway/criteria.c index 5fee1888..53461c74 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_VIEW) { + if (cont->type < C_CONTAINER) { return false; } int matches = 0;