aboutsummaryrefslogtreecommitdiff
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-01 13:01:15 +0100
committerGitHub <noreply@github.com>2018-11-01 13:01:15 +0100
commit8ad06f0ec554da0ded551fc1b83f9cd0b3fa2a27 (patch)
tree8399de2ba00a8a0dd57f49dfc30455c330500b54 /sway/criteria.c
parent480b03b734e6d1d068859b254d8ace4fb07b2c54 (diff)
parent9fc736f4e1804b06538191786500f927ba0cda13 (diff)
Merge pull request #3041 from RyanDwyer/marks-props-to-container
Move view marks properties to container struct
Diffstat (limited to 'sway/criteria.c')
-rw-r--r--sway/criteria.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index 89630d90..2f9992e9 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -121,8 +121,9 @@ static bool criteria_matches_view(struct criteria *criteria,
if (criteria->con_mark) {
bool exists = false;
- for (int i = 0; i < view->marks->length; ++i) {
- if (regex_cmp(view->marks->items[i], criteria->con_mark) == 0) {
+ struct sway_container *con = view->container;
+ for (int i = 0; i < con->marks->length; ++i) {
+ if (regex_cmp(con->marks->items[i], criteria->con_mark) == 0) {
exists = true;
break;
}