aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-04-08 12:13:09 -0400
committerTony Crisci <tony@dubstepdish.com>2018-04-08 12:13:09 -0400
commit70b33342fec0e0cc720cbb62a059c40a34c5314f (patch)
tree598f7d8b2db355a5bee4a43e0191533d6c62101c /sway
parent46280460a58e6517b81e55eb0b027ad12aaed834 (diff)
downloadsway-70b33342fec0e0cc720cbb62a059c40a34c5314f.tar.xz
criteria match containers
Diffstat (limited to 'sway')
-rw-r--r--sway/criteria.c2
1 files changed, 1 insertions, 1 deletions
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;