aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-22 21:12:05 -0400
committerGitHub <noreply@github.com>2017-10-22 21:12:05 -0400
commitf0add2f8a902f121719ee2eb16bfbab5d135f9bc (patch)
treed5fcddc15e07b7a9f4907e3240aeaa61d8e11e04 /include/wlr
parent53174f3d61c988d8c209b8143c10ff79c8b47fe4 (diff)
parent0e7d13fab7f23658a85df58ad26c6c77c9638bff (diff)
Merge pull request #320 from acrisci/refactor/abstract-buffer-exists
abstract buffer exists
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_surface.h8
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,