aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-24 23:31:58 +0100
committeremersion <contact@emersion.fr>2018-04-25 23:53:44 +0100
commitd47713ac0f28e9dcc85f8aa40a0372381730d43b (patch)
tree8669d0d20b3a4a8616dee20d24804ba8f62500da /include
parent89a9c96fab054f5535038811b598d34430b24cf4 (diff)
compositor: destroy subsurface resources with wlr_subcompositor
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_compositor.h1
-rw-r--r--include/wlr/types/wlr_surface.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h
index 5dd2ce98..f6be0a74 100644
--- a/include/wlr/types/wlr_compositor.h
+++ b/include/wlr/types/wlr_compositor.h
@@ -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 {
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index 35d47926..f799b28a 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -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);
/**