Replace view_wlr_surface_at with scene-graph

This commit is contained in:
Simon Ser 2021-08-10 11:40:54 +02:00 committed by Jente Hidskes
parent 6d60c6c464
commit fb3dc58237
5 changed files with 22 additions and 54 deletions

7
view.c
View file

@ -231,6 +231,7 @@ view_map(struct cg_view *view, struct wlr_surface *surface)
wl_resource_post_no_memory(surface->resource);
return;
}
view->scene_surface->node.data = view;
struct wlr_subsurface *subsurface;
wl_list_for_each (subsurface, &view->wlr_surface->current.subsurfaces_below, current.link) {
@ -296,9 +297,3 @@ view_from_wlr_surface(struct cg_server *server, struct wlr_surface *surface)
}
return NULL;
}
struct wlr_surface *
view_wlr_surface_at(struct cg_view *view, double sx, double sy, double *sub_x, double *sub_y)
{
return view->impl->wlr_surface_at(view, sx, sy, sub_x, sub_y);
}