diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-02-10 16:52:45 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-02-10 16:52:45 -0500 |
commit | 145b4fdf582d3817a19819250cf01836b193c76f (patch) | |
tree | f7c81a0094c10ca202ac8665223789ff4179e11c /include/sway | |
parent | fix build for output damage (diff) | |
download | sway-145b4fdf582d3817a19819250cf01836b193c76f.tar.gz sway-145b4fdf582d3817a19819250cf01836b193c76f.tar.zst sway-145b4fdf582d3817a19819250cf01836b193c76f.zip |
use bfs iterator to collect focus stack
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/container.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index 997240bd..01e166ad 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -163,9 +163,9 @@ swayc_t *swayc_at(swayc_t *parent, double lx, double ly, | |||
163 | struct wlr_surface **surface, double *sx, double *sy); | 163 | struct wlr_surface **surface, double *sx, double *sy); |
164 | 164 | ||
165 | /** | 165 | /** |
166 | * Get a list of containers that are descendents of the container in rendering | 166 | * Apply the function for each child of the container breadth first. |
167 | * order | ||
168 | */ | 167 | */ |
169 | list_t *container_list_children(swayc_t *con); | 168 | void container_for_each_bfs(swayc_t *con, void (*f)(swayc_t *con, void *data), |
169 | void *data); | ||
170 | 170 | ||
171 | #endif | 171 | #endif |