aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-05 14:16:45 -0400
committerGitHub <noreply@github.com>2018-04-05 14:16:45 -0400
commit19b576734e75d65ed6e28b13131f20f6444cba48 (patch)
tree078d8c43cdc6d6f116704cd6d363c66253f42446 /include
parentda73b4f60b2f08ae057f921c45ad616c11e6c66d (diff)
parentaced024819fe990cf513e07899b9d22848fafcff (diff)
Merge pull request #834 from emersion/surface-is-subsurface
Add wlr_surface_is_subsurface and wlr_subsurface_from_surface
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_compositor.h6
1 files changed, 6 insertions, 0 deletions
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 <wayland-server.h>
#include <wlr/render/wlr_renderer.h>
+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