summaryrefslogtreecommitdiff
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2018-07-22 22:28:20 +1000
committerRyan Dwyer <[email protected]>2018-07-23 08:24:32 +1000
commit12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3 (patch)
tree5f855ab05c0ec079f4487e9527f87f37c1929bf1 /sway/criteria.c
parent81e8f31cc6f284b54ab206e14af7ecbc1a9ed1bb (diff)
Store scratchpad list in sway_root instead of server
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 6af97d5b..c2e9c07e 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -227,8 +227,9 @@ list_t *criteria_get_views(struct criteria *criteria) {
criteria_get_views_iterator, &data);
// Scratchpad items which are hidden are not in the tree.
- for (int i = 0; i < server.scratchpad->length; ++i) {
- struct sway_container *con = server.scratchpad->items[i];
+ for (int i = 0; i < root_container.sway_root->scratchpad->length; ++i) {
+ struct sway_container *con =
+ root_container.sway_root->scratchpad->items[i];
if (!con->parent) {
criteria_get_views_iterator(con, &data);
}