From 9f9aa1be50e2b4350dcae1bbfd84a1eddf3bb9ca Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Mon, 6 Feb 2012 16:26:57 +0200 Subject: [PATCH] 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 --- src/compositor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index bd5d2e79b..a74ac30b9 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -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,