aboutsummaryrefslogtreecommitdiff
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-09-05 17:37:04 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-09-05 18:01:43 +1000
commit1f2e0ff54b88273ecdbed866c8191b5671f0b7a0 (patch)
tree0e9a8e6995d69b088bca53e4f24a701efe71124e /sway/criteria.c
parent6f717493989e08dcaa6da209ab31ec6189bee7a7 (diff)
Fix inversed condition in criteria
Diffstat (limited to 'sway/criteria.c')
-rw-r--r--sway/criteria.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index e5b308e0..0193233e 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -118,7 +118,7 @@ static bool criteria_matches_view(struct criteria *criteria,
return false;
}
}
-
+
if (criteria->con_mark) {
bool exists = false;
for (int i = 0; i < view->marks->length; ++i) {
@@ -235,7 +235,7 @@ struct match_data {
static void criteria_get_views_iterator(struct sway_container *container,
void *data) {
struct match_data *match_data = data;
- if (!container->view) {
+ if (container->view) {
if (criteria_matches_view(match_data->criteria, container->view)) {
list_add(match_data->matches, container->view);
}