mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Store scratchpad list in sway_root instead of server
This commit is contained in:
parent
81e8f31cc6
commit
12e90fa600
7 changed files with 18 additions and 18 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue