commit 70b33342fec0e0cc720cbb62a059c40a34c5314f
parent 46280460a58e6517b81e55eb0b027ad12aaed834
Author: Tony Crisci <tony@dubstepdish.com>
Date: Sun, 8 Apr 2018 12:13:09 -0400
criteria match containers
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;