aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-06-22 15:12:30 +0300
committerSimon Ser <contact@emersion.fr>2023-06-23 11:54:05 +0000
commitfc9b58e84da2303148757cad4a83eb17d974edae (patch)
tree9ad360d15d8cea2cdd086c965b5bf1484a1f286f /include
parent0f67580aab115e9667650d52104e3ea3a5dfe20b (diff)
compositor: don't call role unmap hook without an object
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_compositor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h
index c8b63a59..ba2d4649 100644
--- a/include/wlr/types/wlr_compositor.h
+++ b/include/wlr/types/wlr_compositor.h
@@ -87,6 +87,9 @@ struct wlr_surface_role {
void (*commit)(struct wlr_surface *surface);
/**
* Called when the surface is unmapped. May be NULL.
+ *
+ * If the role is represented by an object, this is only called if
+ * such object exists.
*/
void (*unmap)(struct wlr_surface *surface);
/**