aboutsummaryrefslogtreecommitdiff
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-23 07:57:48 -0400
committerGitHub <noreply@github.com>2018-07-23 07:57:48 -0400
commit0515b37dfde41cfa85529ac0f8b991a1bec749d2 (patch)
tree5f855ab05c0ec079f4487e9527f87f37c1929bf1 /sway/criteria.c
parent89dc047ca9558efe4efe8a81a15903cd0f0bdcba (diff)
parent12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3 (diff)
Merge pull request #2323 from RyanDwyer/scratchpad
Implement scratchpad
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) {
};
container_for_each_descendant_dfs(&root_container,
criteria_get_views_iterator, &data);
+
+ // Scratchpad items which are hidden are not in the tree.
+ 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);
+ }
+ }
return matches;
}