aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-26 18:24:23 -0500
committerGitHub <noreply@github.com>2018-11-26 18:24:23 -0500
commited1ffddba8dbba885aaaf913ec3f25f94f834ccc (patch)
tree7c97d1f14b7be6b2dd12a089e4f6a5656848491b /include
parenteaa852ed77f66f782df73a33928717d68937d4b1 (diff)
parenta5b8ea90d2b2fe5a56c166d362ced712f6aa35bb (diff)
Merge pull request #1396 from emersion/fix-destroyed-subsurface
surface: fix destroyed subsurfaces handling
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_compositor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h
index 1772e54b..36b9e83f 100644
--- a/include/wlr/types/wlr_compositor.h
+++ b/include/wlr/types/wlr_compositor.h
@@ -43,6 +43,10 @@ struct wlr_compositor *wlr_compositor_create(struct wl_display *display,
bool wlr_surface_is_subsurface(struct wlr_surface *surface);
+/**
+ * Get a subsurface from a surface. Can return NULL if the subsurface has been
+ * destroyed.
+ */
struct wlr_subsurface *wlr_subsurface_from_wlr_surface(
struct wlr_surface *surface);