|
|
@ -633,7 +633,6 @@ static void damage_surface_iterator(struct sway_output *output,
|
|
|
|
struct wlr_box box = *_box;
|
|
|
|
struct wlr_box box = *_box;
|
|
|
|
scale_box(&box, output->wlr_output->scale);
|
|
|
|
scale_box(&box, output->wlr_output->scale);
|
|
|
|
|
|
|
|
|
|
|
|
if (pixman_region32_not_empty(&surface->buffer_damage)) {
|
|
|
|
|
|
|
|
pixman_region32_t damage;
|
|
|
|
pixman_region32_t damage;
|
|
|
|
pixman_region32_init(&damage);
|
|
|
|
pixman_region32_init(&damage);
|
|
|
|
wlr_surface_get_effective_damage(surface, &damage);
|
|
|
|
wlr_surface_get_effective_damage(surface, &damage);
|
|
|
@ -647,7 +646,6 @@ static void damage_surface_iterator(struct sway_output *output,
|
|
|
|
pixman_region32_translate(&damage, box.x, box.y);
|
|
|
|
pixman_region32_translate(&damage, box.x, box.y);
|
|
|
|
wlr_output_damage_add(output->damage, &damage);
|
|
|
|
wlr_output_damage_add(output->damage, &damage);
|
|
|
|
pixman_region32_fini(&damage);
|
|
|
|
pixman_region32_fini(&damage);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (whole) {
|
|
|
|
if (whole) {
|
|
|
|
wlr_output_damage_add_box(output->damage, &box);
|
|
|
|
wlr_output_damage_add_box(output->damage, &box);
|
|
|
|