From 5d8bd4d343397f2f2ef2bb20241363248e034e42 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 19 Oct 2019 14:46:24 +0000 Subject: output: Add commit sequence number This allows synchronisation between different instances of commit/precommit callbacks. --- include/wlr/types/wlr_output.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 01e71206..97aa885e 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -114,6 +114,9 @@ struct wlr_output { struct wlr_output_state pending; + // Commit sequence number. Incremented on each commit, may overflow. + uint32_t commit_seq; + struct { // Request to render a frame struct wl_signal frame; -- cgit v1.2.3