[mutter/wip/carlosg/hidpi-input-opaque-regions: 10/10] wayland: Use geometry_scale on opaque regions



commit b30c907ef95644c0adec45d599fd31c48ad0a4d2
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Aug 24 17:14:26 2018 +0200

    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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]