mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
surface: add WLR_SURFACE_STATE_SUBSURFACES
This allows to figure out when the subsurface list has changed: subsurface added 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:
parent
ab924064f2
commit
baf35a89f1
2 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ enum wlr_surface_state_field {
|
|||
WLR_SURFACE_STATE_FRAME_CALLBACK_LIST = 1 << 7,
|
||||
WLR_SURFACE_STATE_VIEWPORT = 1 << 8,
|
||||
WLR_SURFACE_STATE_OFFSET = 1 << 9,
|
||||
WLR_SURFACE_STATE_SUBSURFACES = 1 << 10, // sub-surface added or re-ordered
|
||||
};
|
||||
|
||||
struct wlr_surface_state {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue