output-damage: stop relying on output pending state on commit

References: https://github.com/swaywm/wlroots/issues/2098
This commit is contained in:
Simon Ser 2021-01-10 17:07:31 +01:00
parent afdf4dc890
commit 1fb9535e99
2 changed files with 19 additions and 1 deletions

View file

@ -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;
};