diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-22 22:28:20 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-23 08:24:32 +1000 |
commit | 12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3 (patch) | |
tree | 5f855ab05c0ec079f4487e9527f87f37c1929bf1 /sway/criteria.c | |
parent | Implement scratchpad (diff) | |
download | sway-12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3.tar.gz sway-12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3.tar.zst sway-12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3.zip |
Store scratchpad list in sway_root instead of server
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 6af97d5b..c2e9c07e 100644 --- a/sway/criteria.c +++ b/sway/criteria.c | |||
@@ -227,8 +227,9 @@ list_t *criteria_get_views(struct criteria *criteria) { | |||
227 | criteria_get_views_iterator, &data); | 227 | criteria_get_views_iterator, &data); |
228 | 228 | ||
229 | // Scratchpad items which are hidden are not in the tree. | 229 | // Scratchpad items which are hidden are not in the tree. |
230 | for (int i = 0; i < server.scratchpad->length; ++i) { | 230 | for (int i = 0; i < root_container.sway_root->scratchpad->length; ++i) { |
231 | struct sway_container *con = server.scratchpad->items[i]; | 231 | struct sway_container *con = |
232 | root_container.sway_root->scratchpad->items[i]; | ||
232 | if (!con->parent) { | 233 | if (!con->parent) { |
233 | criteria_get_views_iterator(con, &data); | 234 | criteria_get_views_iterator(con, &data); |
234 | } | 235 | } |