mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-08 07:10:25 +01:00
compositor: fix transformed opaque surface repainting
Computing the real maximal opaque screen aligned rectangle of a transformed surface is hard. Let's drop the opaque optimisation instead. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
ddae03cf9b
commit
9f9aa1be50
1 changed files with 2 additions and 1 deletions
|
|
@ -474,7 +474,8 @@ weston_surface_configure(struct weston_surface *surface,
|
|||
weston_surface_damage(surface);
|
||||
|
||||
pixman_region32_fini(&surface->opaque);
|
||||
if (surface->visual == WESTON_RGB_VISUAL)
|
||||
if (surface->visual == WESTON_RGB_VISUAL &&
|
||||
surface->transform.enabled == 0)
|
||||
pixman_region32_init_rect(&surface->opaque,
|
||||
surface->geometry.x,
|
||||
surface->geometry.y,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue