aboutsummaryrefslogtreecommitdiff
path: root/rootston/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/view.c')
-rw-r--r--rootston/view.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rootston/view.c b/rootston/view.c
index a4c1611d..a5bc3aff 100644
--- a/rootston/view.c
+++ b/rootston/view.c
@@ -559,6 +559,15 @@ void view_damage_whole(struct roots_view *view) {
}
}
+void view_for_each_surface(struct roots_view *view,
+ wlr_surface_iterator_func_t iterator, void *user_data) {
+ if (view->impl->for_each_surface) {
+ view->impl->for_each_surface(view, iterator, user_data);
+ } else if (view->wlr_surface) {
+ wlr_surface_for_each_surface(view->wlr_surface, iterator, user_data);
+ }
+}
+
void view_update_position(struct roots_view *view, int x, int y) {
if (view->box.x == x && view->box.y == y) {
return;