diff options
author | emersion <contact@emersion.fr> | 2018-04-24 23:05:15 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-25 23:53:44 +0100 |
commit | 89a9c96fab054f5535038811b598d34430b24cf4 (patch) | |
tree | 363bf13737f786b8e857ab9158123cb25dc832d0 /include | |
parent | cd9f25711cd2ce46a9af577b6426bab73c270fda (diff) |
compositor: make wlr_compositor_destroy destroy resources
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 3 | ||||
-rw-r--r-- | include/wlr/types/wlr_region.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 816ff713..5dd2ce98 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -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; diff --git a/include/wlr/types/wlr_region.h b/include/wlr/types/wlr_region.h index ffacea72..a79ab61d 100644 --- a/include/wlr/types/wlr_region.h +++ b/include/wlr/types/wlr_region.h @@ -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); |