view: implement view_from_wlr_surface in terms of wlr_surface->data pointer

This commit is contained in:
Jente Hidskes 2021-12-24 08:58:19 +01:00
parent 1ccbacf198
commit ba9c245393
3 changed files with 12 additions and 12 deletions

2
view.h
View file

@ -54,6 +54,6 @@ void view_map(struct cg_view *view, struct wlr_surface *surface);
void view_destroy(struct cg_view *view);
void view_init(struct cg_view *view, struct cg_server *server, enum cg_view_type type, const struct cg_view_impl *impl);
struct cg_view *view_from_wlr_surface(struct cg_server *server, struct wlr_surface *surface);
struct cg_view *view_from_wlr_surface(struct wlr_surface *surface);
#endif