[mutter/gnome-3-10-wayland] window-actor: Fix optimization in get_paint_volume



commit 5d4138b933546235a3fc7efd813ab571c297f884
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Dec 6 11:44:42 2013 -0500

    window-actor: Fix optimization in get_paint_volume
    
    We need to clip the paint volume to the unobscured region, not the
    other way around...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720630

 src/compositor/meta-window-actor.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 4dd7775..3108336 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -768,7 +768,11 @@ meta_window_actor_get_paint_volume (ClutterActor       *actor,
     }
 
   if (priv->unobscured_region)
-    cairo_region_intersect_rectangle (priv->unobscured_region, &bounds);
+    {
+      cairo_rectangle_int_t unobscured_bounds;
+      cairo_region_get_extents (priv->unobscured_region, &unobscured_bounds);
+      gdk_rectangle_intersect (&bounds, &unobscured_bounds, &bounds);
+    }
 
   origin.x = bounds.x;
   origin.y = bounds.y;


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