From 9fc736f4e1804b06538191786500f927ba0cda13 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 31 Oct 2018 21:27:38 +1000 Subject: Move view marks properties to container struct Like border properties, this will be needed to implement layout saving and restoring. --- sway/criteria.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sway/criteria.c') 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; } -- cgit v1.2.3