From b30c907ef95644c0adec45d599fd31c48ad0a4d2 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 24 Aug 2018 17:14:26 +0200 Subject: [PATCH] wayland: Use geometry_scale on opaque regions This was done for input regions in commit 718a89eb2f4 (Thanks Jonas for the archaeology!) but opaque regions follow the same scaling. This brings less evident issues as opaque regions are just used for culling optimizations. --- src/wayland/meta-wayland-actor-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-actor-surface.c b/src/wayland/meta-wayland-actor-surface.c index c05be63eb..c4f8619a6 100644 --- a/src/wayland/meta-wayland-actor-surface.c +++ b/src/wayland/meta-wayland-actor-surface.c @@ -189,7 +189,7 @@ meta_wayland_actor_surface_real_sync_actor_state (MetaWaylandActorSurface *actor /* Wayland surface coordinate space -> stage coordinate space */ scaled_opaque_region = meta_region_scale (surface->opaque_region, - surface->scale); + geometry_scale); cairo_region_intersect_rectangle (scaled_opaque_region, &surface_rect); meta_surface_actor_set_opaque_region (surface_actor, scaled_opaque_region);