mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 14:42:25 +00:00
scene: resize damage ring on geometry update
This commit is contained in:
parent
bfcaa4bc44
commit
cf93d31736
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user