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. --- sway/desktop/render.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sway/desktop/render.c') diff --git a/sway/desktop/render.c b/sway/desktop/render.c index ed9ad490..efa3a0d9 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -8,8 +8,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -1186,7 +1186,7 @@ renderer_end: enum wl_output_transform transform = wlr_output_transform_invert(wlr_output->transform); - wlr_region_transform(&frame_damage, &output->damage->current, + wlr_region_transform(&frame_damage, &output->damage_ring.current, transform, width, height); if (debug.damage != DAMAGE_DEFAULT) { @@ -1200,5 +1200,7 @@ renderer_end: if (!wlr_output_commit(wlr_output)) { return; } + + wlr_damage_ring_rotate(&output->damage_ring); output->last_frame = *when; } -- cgit v1.2.3