From 7862fa670e208b4871c868f9b0e2a19b46a30e63 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Fri, 11 Nov 2022 18:29:04 +0300 Subject: Use wlr_damage_ring wlr_output_damage is to be replaced with wlr_damage_ring, so use that. --- include/sway/output.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/sway/output.h b/include/sway/output.h index d72bf1b2..7ccaa09c 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "config.h" #include "sway/tree/node.h" @@ -26,7 +27,7 @@ struct sway_output { struct wlr_box usable_area; struct timespec last_frame; - struct wlr_output_damage *damage; + struct wlr_damage_ring damage_ring; int lx, ly; // layout coords int width, height; // transformed buffer size @@ -44,8 +45,9 @@ struct sway_output { struct wl_listener commit; struct wl_listener mode; struct wl_listener present; - struct wl_listener damage_destroy; - struct wl_listener damage_frame; + struct wl_listener damage; + struct wl_listener frame; + struct wl_listener needs_frame; struct { struct wl_signal disable; -- cgit v1.2.3-70-g09d2