summaryrefslogtreecommitdiffstats
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-08 12:13:09 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-08 12:13:09 -0400
commit70b33342fec0e0cc720cbb62a059c40a34c5314f (patch)
tree598f7d8b2db355a5bee4a43e0191533d6c62101c /sway/criteria.c
parentpush all parents of focused container in focus stack (diff)
downloadsway-70b33342fec0e0cc720cbb62a059c40a34c5314f.tar.gz
sway-70b33342fec0e0cc720cbb62a059c40a34c5314f.tar.zst
sway-70b33342fec0e0cc720cbb62a059c40a34c5314f.zip
criteria match containers
Diffstat (limited to 'sway/criteria.c')
-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) {
273 273
274// test a single view if it matches list of criteria tokens (all of them). 274// test a single view if it matches list of criteria tokens (all of them).
275static bool criteria_test(struct sway_container *cont, list_t *tokens) { 275static bool criteria_test(struct sway_container *cont, list_t *tokens) {
276 if (cont->type != C_VIEW) { 276 if (cont->type < C_CONTAINER) {
277 return false; 277 return false;
278 } 278 }
279 int matches = 0; 279 int matches = 0;