compositor: destroy subsurface resources with wlr_subcompositor

This commit is contained in:
emersion 2018-04-24 23:31:58 +01:00
parent 89a9c96fab
commit d47713ac0f
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 45 additions and 15 deletions

View file

@ -9,6 +9,7 @@ struct wlr_surface;
struct wlr_subcompositor {
struct wl_global *wl_global;
struct wl_list wl_resources;
struct wl_list subsurface_resources;
};
struct wlr_compositor {

View file

@ -121,7 +121,7 @@ bool wlr_surface_has_buffer(struct wlr_surface *surface);
/**
* Create the subsurface implementation for this surface.
*/
void wlr_surface_make_subsurface(struct wlr_surface *surface,
struct wlr_subsurface *wlr_surface_make_subsurface(struct wlr_surface *surface,
struct wlr_surface *parent, uint32_t id);
/**