From cf93d3173626c507cb40b2c5d730d64d683d6fe5 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Wed, 21 Aug 2024 13:33:38 +0300 Subject: [PATCH] scene: resize damage ring on geometry update --- types/scene/wlr_scene.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 884c2e11..bc776fdd 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1508,6 +1508,10 @@ static void scene_node_output_update(struct wlr_scene_node *node, static void scene_output_update_geometry(struct wlr_scene_output *scene_output, bool force_update) { + int ring_width, ring_height; + wlr_output_transformed_resolution(scene_output->output, &ring_width, &ring_height); + wlr_damage_ring_set_bounds(&scene_output->damage_ring, ring_width, ring_height); + scene_output_damage_whole(scene_output); scene_node_output_update(&scene_output->scene->tree.node,