diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-22 21:07:32 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-22 21:07:32 -0400 |
commit | d1dd0a6970649d9f2c0eeed30da0eff745f16dd1 (patch) | |
tree | 033ee5fa497f3f67e769fb097a63e613436a39b3 /include/wlr | |
parent | 53174f3d61c988d8c209b8143c10ff79c8b47fe4 (diff) |
refactor buffer detection
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_surface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index 461e593f..ea4184aa 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -110,6 +110,14 @@ int wlr_surface_set_role(struct wlr_surface *surface, const char *role, struct wl_resource *error_resource, uint32_t error_code); /** + * Whether or not this surface currently has an attached buffer. A surface has + * an attached buffer when it commits with a non-null buffer in its pending + * state. A surface will not have a buffer if it has never committed one, has + * committed a null buffer, or something went wrong with uploading the buffer. + */ +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, |