compositor: add surface role map hook

This commit is contained in:
Kirill Primak 2024-08-14 18:22:41 +03:00 committed by Alexander Orzechowski
parent 515275ee72
commit a1298580cc
2 changed files with 12 additions and 0 deletions

View file

@ -97,6 +97,13 @@ struct wlr_surface_role {
* such object exists.
*/
void (*commit)(struct wlr_surface *surface);
/**
* Called when the surface is mapped. May be NULL.
*
* If the role is represented by an object, this is only called if
* such object exists.
*/
void (*map)(struct wlr_surface *surface);
/**
* Called when the surface is unmapped. May be NULL.
*