From fc9b58e84da2303148757cad4a83eb17d974edae Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 22 Jun 2023 15:12:30 +0300 Subject: compositor: don't call role unmap hook without an object --- include/wlr/types/wlr_compositor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); /** -- cgit v1.2.3