xdg-shell: add support for cached state
When the pending surface state becomes cached, also cache the pending xdg_surface state. When a cached surface state becomes current, also make the matching cached xdg_surface state current.
References: #2957
The wlr_surface
API for cached state is not very ergonomic. Ideas welcome to improve it.
-
Add a wlr_surface_role_impl.cache
hook that runs beforewlr_surface.events.cache
is emitted
Edited by Kirill Primak