scene: resize damage ring on geometry update

This commit is contained in:
Kirill Primak 2024-08-21 13:33:38 +03:00 committed by Alexander Orzechowski
parent bfcaa4bc44
commit cf93d31736

View File

@ -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, static void scene_output_update_geometry(struct wlr_scene_output *scene_output,
bool force_update) { 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_output_damage_whole(scene_output);
scene_node_output_update(&scene_output->scene->tree.node, scene_node_output_update(&scene_output->scene->tree.node,