surface: introduce commit sequence numbers

Very similar to output commit sequence numbers. Can be useful to
reference a specific commit.
This commit is contained in:
Simon Ser 2021-03-22 18:28:13 +01:00
parent 78d21fa131
commit 7ac76aba8a
2 changed files with 7 additions and 0 deletions

View file

@ -31,6 +31,9 @@ enum wlr_surface_state_field {
struct wlr_surface_state {
uint32_t committed; // enum wlr_surface_state_field
// Sequence number of the surface state. Incremented on each commit, may
// overflow.
uint32_t seq;
struct wl_resource *buffer_resource;
int32_t dx, dy; // relative to previous position