aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_compositor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h
index 94262b4b..da12427e 100644
--- a/include/wlr/types/wlr_compositor.h
+++ b/include/wlr/types/wlr_compositor.h
@@ -82,6 +82,15 @@ struct wlr_surface_role {
*/
bool no_object;
/**
+ * Called when the client sends the wl_surface.commit request. May be NULL.
+ * Typically used to check that the pending state is valid, and send
+ * protocol errors if not.
+ *
+ * If the role is represented by an object, this is only called if
+ * such object exists.
+ */
+ void (*client_commit)(struct wlr_surface *surface);
+ /**
* Called when a new surface state is committed. May be NULL.
*
* If the role is represented by an object, this is only called if