Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
surface: fix damage when moving subsurfaces with scale > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Jul 3, 2018
1 parent daaaa80 commit c0d476b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/wlr_surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,10 @@ static void subsurface_role_committed(struct wlr_surface *surface, void *data) {
pixman_region32_union_rect(&surface->buffer_damage,
&surface->buffer_damage,
dx * surface->previous.scale, dy * surface->previous.scale,
surface->previous.width, surface->previous.height);
surface->previous.buffer_width, surface->previous.buffer_height);
pixman_region32_union_rect(&surface->buffer_damage,
&surface->buffer_damage, 0, 0,
surface->current.width, surface->current.height);
surface->current.buffer_width, surface->current.buffer_height);
}
}

Expand Down

0 comments on commit c0d476b

Please sign in to comment.