mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
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
This commit is contained in:
parent
a7414885d2
commit
5438cc158a
6 changed files with 15 additions and 24 deletions
|
|
@ -449,13 +449,13 @@ void view_for_each_surface(struct sway_view *view,
|
|||
}
|
||||
}
|
||||
|
||||
void view_for_each_popup(struct sway_view *view,
|
||||
void view_for_each_popup_surface(struct sway_view *view,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data) {
|
||||
if (!view->surface) {
|
||||
return;
|
||||
}
|
||||
if (view->impl->for_each_popup) {
|
||||
view->impl->for_each_popup(view, iterator, user_data);
|
||||
if (view->impl->for_each_popup_surface) {
|
||||
view->impl->for_each_popup_surface(view, iterator, user_data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue