surface: add cache event

This commit is contained in:
Simon Ser 2021-06-18 18:25:27 +02:00
parent 3fdf8cf07e
commit 0f9ecac3cb
2 changed files with 9 additions and 0 deletions

View file

@ -135,6 +135,12 @@ struct wlr_surface {
struct {
struct wl_signal commit;
/**
* Emitted when the pending state is cached.
*
* Can be used by surface extensions to tie their own state to commits.
*/
struct wl_signal cache; // struct wlr_surface_state *
struct wl_signal new_subsurface;
struct wl_signal destroy;
} events;