diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-11-11 18:29:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 16:29:04 +0100 |
commit | 7862fa670e208b4871c868f9b0e2a19b46a30e63 (patch) | |
tree | af04922421932a75bbac9bab84330a2b91b788be /sway/desktop/render.c | |
parent | Use wl_signal_emit_mutable() (diff) | |
download | sway-7862fa670e208b4871c868f9b0e2a19b46a30e63.tar.gz sway-7862fa670e208b4871c868f9b0e2a19b46a30e63.tar.zst sway-7862fa670e208b4871c868f9b0e2a19b46a30e63.zip |
Use wlr_damage_ring
wlr_output_damage is to be replaced with wlr_damage_ring, so use that.
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
8 | #include <wlr/render/gles2.h> | 8 | #include <wlr/render/gles2.h> |
9 | #include <wlr/render/wlr_renderer.h> | 9 | #include <wlr/render/wlr_renderer.h> |
10 | #include <wlr/types/wlr_buffer.h> | 10 | #include <wlr/types/wlr_buffer.h> |
11 | #include <wlr/types/wlr_damage_ring.h> | ||
11 | #include <wlr/types/wlr_matrix.h> | 12 | #include <wlr/types/wlr_matrix.h> |
12 | #include <wlr/types/wlr_output_damage.h> | ||
13 | #include <wlr/types/wlr_output_layout.h> | 13 | #include <wlr/types/wlr_output_layout.h> |
14 | #include <wlr/types/wlr_output.h> | 14 | #include <wlr/types/wlr_output.h> |
15 | #include <wlr/types/wlr_compositor.h> | 15 | #include <wlr/types/wlr_compositor.h> |
@@ -1186,7 +1186,7 @@ renderer_end: | |||
1186 | 1186 | ||
1187 | enum wl_output_transform transform = | 1187 | enum wl_output_transform transform = |
1188 | wlr_output_transform_invert(wlr_output->transform); | 1188 | wlr_output_transform_invert(wlr_output->transform); |
1189 | wlr_region_transform(&frame_damage, &output->damage->current, | 1189 | wlr_region_transform(&frame_damage, &output->damage_ring.current, |
1190 | transform, width, height); | 1190 | transform, width, height); |
1191 | 1191 | ||
1192 | if (debug.damage != DAMAGE_DEFAULT) { | 1192 | if (debug.damage != DAMAGE_DEFAULT) { |
@@ -1200,5 +1200,7 @@ renderer_end: | |||
1200 | if (!wlr_output_commit(wlr_output)) { | 1200 | if (!wlr_output_commit(wlr_output)) { |
1201 | return; | 1201 | return; |
1202 | } | 1202 | } |
1203 | |||
1204 | wlr_damage_ring_rotate(&output->damage_ring); | ||
1203 | output->last_frame = *when; | 1205 | output->last_frame = *when; |
1204 | } | 1206 | } |