summaryrefslogtreecommitdiffstats
path: root/sway/criteria.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/criteria.c')
-rw-r--r--sway/criteria.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index e2b248de..c2e9c07e 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -225,6 +225,15 @@ list_t *criteria_get_views(struct criteria *criteria) {
225 }; 225 };
226 container_for_each_descendant_dfs(&root_container, 226 container_for_each_descendant_dfs(&root_container,
227 criteria_get_views_iterator, &data); 227 criteria_get_views_iterator, &data);
228
229 // Scratchpad items which are hidden are not in the tree.
230 for (int i = 0; i < root_container.sway_root->scratchpad->length; ++i) {
231 struct sway_container *con =
232 root_container.sway_root->scratchpad->items[i];
233 if (!con->parent) {
234 criteria_get_views_iterator(con, &data);
235 }
236 }
228 return matches; 237 return matches;
229} 238}
230 239