From 6ebe38b759f396d3177564d16ff1d889b449451a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 22 Dec 2023 10:13:35 +0100 Subject: [PATCH] compositor: make state seq an uint64_t Saves us from having to think about overflow cases. --- include/wlr/types/wlr_compositor.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 383fbd702..200d180f8 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -33,9 +33,8 @@ 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; + // Sequence number of the surface state. Incremented on each commit. + uint64_t seq; struct wlr_buffer *buffer; int32_t dx, dy; // relative to previous position @@ -385,7 +384,7 @@ void wlr_surface_get_buffer_source_box(struct wlr_surface *surface, * A lock preventing cached state from being applied. */ struct wlr_surface_cached_lock { - uint32_t seq; + uint64_t seq; }; /**