mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
xdg shell: add wlr_xdg_surface_for_each_popup_surface()
When rendering, it is necessary to iterate the subsurfaces as well, so add a function that makes this easy.
This commit is contained in:
parent
129e02b57d
commit
c5c5ab9724
2 changed files with 40 additions and 0 deletions
|
|
@ -392,6 +392,14 @@ void wlr_xdg_surface_get_geometry(struct wlr_xdg_surface *surface,
|
|||
void wlr_xdg_surface_for_each_surface(struct wlr_xdg_surface *surface,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data);
|
||||
|
||||
/**
|
||||
* Call `iterator` on each popup's surface and popup's subsurface in the
|
||||
* xdg-surface tree, with the surfaces's position relative to the root
|
||||
* xdg-surface. The function is called from root to leaves (in rendering order).
|
||||
*/
|
||||
void wlr_xdg_surface_for_each_popup_surface(struct wlr_xdg_surface *surface,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data);
|
||||
|
||||
/**
|
||||
* Schedule a surface configuration. This should only be called by protocols
|
||||
* extending the shell.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue