diff options
author | Simon Ser <contact@emersion.fr> | 2021-01-08 10:46:12 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-12 11:25:34 +0100 |
commit | 5438cc158a1b9fa3bf76445a6dc986e30c5e78f6 (patch) | |
tree | 7feb4dce6441803e7ddd50b7747ebb6a46a2a485 /sway/desktop/output.c | |
parent | Fix #5940 (diff) | |
download | sway-5438cc158a1b9fa3bf76445a6dc986e30c5e78f6.tar.gz sway-5438cc158a1b9fa3bf76445a6dc986e30c5e78f6.tar.zst sway-5438cc158a1b9fa3bf76445a6dc986e30c5e78f6.zip |
Switch to wlr_xdg_surface_for_each_popup_surface
Instead of calling wlr_xdg_surface_for_each_popup and then
wlr_surface_for_each_surface, use the new for_each_popup_surface helper
introduced in [1] that does it in one go.
[1]: https://github.com/swaywm/wlroots/pull/2609
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 06acb868..7921d597 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -179,7 +179,7 @@ void output_view_for_each_surface(struct sway_output *output, | |||
179 | view_for_each_surface(view, output_for_each_surface_iterator, &data); | 179 | view_for_each_surface(view, output_for_each_surface_iterator, &data); |
180 | } | 180 | } |
181 | 181 | ||
182 | void output_view_for_each_popup(struct sway_output *output, | 182 | void output_view_for_each_popup_surface(struct sway_output *output, |
183 | struct sway_view *view, sway_surface_iterator_func_t iterator, | 183 | struct sway_view *view, sway_surface_iterator_func_t iterator, |
184 | void *user_data) { | 184 | void *user_data) { |
185 | struct surface_iterator_data data = { | 185 | struct surface_iterator_data data = { |
@@ -196,7 +196,7 @@ void output_view_for_each_popup(struct sway_output *output, | |||
196 | .rotation = 0, // TODO | 196 | .rotation = 0, // TODO |
197 | }; | 197 | }; |
198 | 198 | ||
199 | view_for_each_popup(view, output_for_each_surface_iterator, &data); | 199 | view_for_each_popup_surface(view, output_for_each_surface_iterator, &data); |
200 | } | 200 | } |
201 | 201 | ||
202 | void output_layer_for_each_surface(struct sway_output *output, | 202 | void output_layer_for_each_surface(struct sway_output *output, |