From 7ac76aba8abaa5fbd82db8453ac6f2450142da9f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 22 Mar 2021 18:28:13 +0100 Subject: surface: introduce commit sequence numbers Very similar to output commit sequence numbers. Can be useful to reference a specific commit. --- include/wlr/types/wlr_surface.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index ef2f2dac..d247df0c 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -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 -- cgit v1.2.3