From 1fb9535e995fe97503252b79b255fb85f68d51ae Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 10 Jan 2021 17:07:31 +0100 Subject: output-damage: stop relying on output pending state on commit References: https://github.com/swaywm/wlroots/issues/2098 --- include/wlr/types/wlr_output_damage.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_output_damage.h b/include/wlr/types/wlr_output_damage.h index 39d28263..e4b1f862 100644 --- a/include/wlr/types/wlr_output_damage.h +++ b/include/wlr/types/wlr_output_damage.h @@ -42,6 +42,8 @@ struct wlr_output_damage { pixman_region32_t previous[WLR_OUTPUT_DAMAGE_PREVIOUS_LEN]; size_t previous_idx; + enum wlr_output_state_buffer_type pending_buffer_type; + struct { struct wl_signal frame; struct wl_signal destroy; @@ -52,6 +54,7 @@ struct wlr_output_damage { struct wl_listener output_needs_frame; struct wl_listener output_damage; struct wl_listener output_frame; + struct wl_listener output_precommit; struct wl_listener output_commit; }; -- cgit v1.2.3