aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-10 17:07:31 +0100
committerSimon Ser <contact@emersion.fr>2021-01-16 09:06:27 +0100
commit1fb9535e995fe97503252b79b255fb85f68d51ae (patch)
treea34997c27a70cb83900ac6d5f427acff56732630 /include
parentafdf4dc890d512b4d56796451af5a76a18376c0e (diff)
output-damage: stop relying on output pending state on commit
References: https://github.com/swaywm/wlroots/issues/2098
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output_damage.h3
1 files changed, 3 insertions, 0 deletions
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;
};