Skip to content

xdg-shell: add support for cached state

Simon Ser requested to merge github/fork/emersion/xdg-surface-cached into master

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 before wlr_surface.events.cache is emitted
Edited by Kirill Primak

Merge request reports

Loading