aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-01-08 11:14:42 +0100
committerSimon Ser <contact@emersion.fr>2021-01-12 11:26:08 +0100
commit07111828c5a2a4cd12db348c4d1879c2f769a71c (patch)
treeb0e86999e810763e955da078cd335db443937550 /include
parentf574ca934c80c747c36b8a97c8087a2c3c06d239 (diff)
layer shell: rename popup iterator for consistency
This iterates over the subsurfaces of popups as well, so rename it to match wlr_xdg_surface_for_each_popup_surface().
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_layer_shell_v1.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_layer_shell_v1.h b/include/wlr/types/wlr_layer_shell_v1.h
index 007c612b..9c56f8af 100644
--- a/include/wlr/types/wlr_layer_shell_v1.h
+++ b/include/wlr/types/wlr_layer_shell_v1.h
@@ -138,8 +138,14 @@ struct wlr_layer_surface_v1 *wlr_layer_surface_v1_from_wlr_surface(
void wlr_layer_surface_v1_for_each_surface(struct wlr_layer_surface_v1 *surface,
wlr_surface_iterator_func_t iterator, void *user_data);
-/* Calls the iterator function for each popup of this surface */
-void wlr_layer_surface_v1_for_each_popup(struct wlr_layer_surface_v1 *surface,
+/**
+ * Call `iterator` on each popup's surface and popup's subsurface in the
+ * layer surface's tree, with the surfaces's position relative to the root
+ * layer surface. The function is called from root to leaves (in rendering
+ * order).
+ */
+void wlr_layer_surface_v1_for_each_popup_surface(
+ struct wlr_layer_surface_v1 *surface,
wlr_surface_iterator_func_t iterator, void *user_data);
/**