diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-31 21:27:38 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-11-01 18:09:51 +1000 |
commit | 9fc736f4e1804b06538191786500f927ba0cda13 (patch) | |
tree | 8399de2ba00a8a0dd57f49dfc30455c330500b54 /sway/criteria.c | |
parent | Merge pull request #3040 from RyanDwyer/border-props-to-container (diff) | |
download | sway-9fc736f4e1804b06538191786500f927ba0cda13.tar.gz sway-9fc736f4e1804b06538191786500f927ba0cda13.tar.zst sway-9fc736f4e1804b06538191786500f927ba0cda13.zip |
Move view marks properties to container struct
Like border properties, this will be needed to implement layout saving
and restoring.
Diffstat (limited to 'sway/criteria.c')
-rw-r--r-- | sway/criteria.c | 5 |
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, | |||
121 | 121 | ||
122 | if (criteria->con_mark) { | 122 | if (criteria->con_mark) { |
123 | bool exists = false; | 123 | bool exists = false; |
124 | for (int i = 0; i < view->marks->length; ++i) { | 124 | struct sway_container *con = view->container; |
125 | if (regex_cmp(view->marks->items[i], criteria->con_mark) == 0) { | 125 | for (int i = 0; i < con->marks->length; ++i) { |
126 | if (regex_cmp(con->marks->items[i], criteria->con_mark) == 0) { | ||
126 | exists = true; | 127 | exists = true; |
127 | break; | 128 | break; |
128 | } | 129 | } |