compositor: make wlr_compositor_destroy destroy resources

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

View file

@ -15,7 +15,8 @@ struct wlr_compositor {
struct wl_global *wl_global;
struct wl_list wl_resources;
struct wlr_renderer *renderer;
struct wl_list surfaces;
struct wl_list surface_resources;
struct wl_list region_resources;
struct wlr_subcompositor subcompositor;

View file

@ -8,8 +8,7 @@ struct wl_resource;
/*
* Implements the given resource as region.
*/
void wlr_region_create(struct wl_client *client, struct wl_resource *res,
uint32_t id);
struct wl_resource *wlr_region_create(struct wl_client *client, uint32_t id);
pixman_region32_t *wlr_region_from_resource(struct wl_resource *resource);