Store scratchpad list in sway_root instead of server

This commit is contained in:
Ryan Dwyer 2018-07-22 22:28:20 +10:00
parent 81e8f31cc6
commit 12e90fa600
7 changed files with 18 additions and 18 deletions

View file

@ -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);
}