[mutter] shaped-texture: Update the full bounding box of each clip rectangle



commit f512d4fefa3d09642b78bd0e9a7b646eb2db314a
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Thu Oct 29 16:57:45 2020 +0800

    shaped-texture: Update the full bounding box of each clip rectangle
    
    When using fractional scaling this matters, so that you don't miss a
    line of pixels at the edge of the clip rectangle by rounding down. This
    was observed as a line of corrupt pixels in Firefox (Wayland) tooltips.
    
    Related to: https://gitlab.gnome.org/GNOME/mutter/-/issues/1500
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1554>

 src/compositor/meta-shaped-texture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index 6271142f2b..547ff4d35c 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -1002,7 +1002,7 @@ meta_shaped_texture_update_area (MetaShapedTexture     *stex,
 
   meta_rectangle_scale_double (clip,
                                1.0 / stex->buffer_scale,
-                               META_ROUNDING_STRATEGY_SHRINK,
+                               META_ROUNDING_STRATEGY_GROW,
                                clip);
 
   inverted_transform = meta_monitor_transform_invert (stex->transform);


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