surface: add WLR_SURFACE_STATE_SUBSURFACES

This allows to figure out when the subsurface list has changed:
subsurface added, removed, or re-ordered. In the case where
the subsurface list hasn't changed, some book-keeping operations
can be skipped.
This commit is contained in:
Simon Ser 2021-09-06 18:01:58 +02:00
parent 610f0c0805
commit 0da7eb18ea
2 changed files with 5 additions and 0 deletions

View file

@ -27,6 +27,7 @@ enum wlr_surface_state_field {
WLR_SURFACE_STATE_SCALE = 1 << 6,
WLR_SURFACE_STATE_FRAME_CALLBACK_LIST = 1 << 7,
WLR_SURFACE_STATE_VIEWPORT = 1 << 8,
WLR_SURFACE_STATE_SUBSURFACES = 1 << 9,
};
struct wlr_surface_state {