mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-13 05:34:19 -04:00
Replace view_wlr_surface_at with scene-graph
This commit is contained in:
parent
6d60c6c464
commit
fb3dc58237
5 changed files with 22 additions and 54 deletions
7
view.c
7
view.c
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue