From aced024819fe990cf513e07899b9d22848fafcff Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 5 Apr 2018 13:58:41 -0400 Subject: Add wlr_surface_is_subsurface and wlr_subsurface_from_surface --- include/wlr/types/wlr_compositor.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 11bfac71..922d7c0f 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -4,6 +4,8 @@ #include #include +struct wlr_surface; + struct wlr_compositor { struct wl_global *wl_global; struct wl_list wl_resources; @@ -22,4 +24,8 @@ void wlr_compositor_destroy(struct wlr_compositor *wlr_compositor); struct wlr_compositor *wlr_compositor_create(struct wl_display *display, struct wlr_renderer *renderer); +bool wlr_surface_is_subsurface(struct wlr_surface *surface); + +struct wlr_subsurface *wlr_subsurface_from_surface(struct wlr_surface *surface); + #endif -- cgit v1.2.3