[mutter] meta-window-group: Report a paint volume



commit c996dde5cb5cf0508dfe90b8882c6c3daa109309
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sat Mar 2 13:04:20 2013 +0100

    meta-window-group: Report a paint volume
    
    We never paint outside of the allocation so we can simply use
    clutter_paint_volume_set_from_allocation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694988

 src/compositor/meta-window-group.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-window-group.c b/src/compositor/meta-window-group.c
index 5dba971..f499cb7 100644
--- a/src/compositor/meta-window-group.c
+++ b/src/compositor/meta-window-group.c
@@ -250,12 +250,20 @@ meta_window_group_paint (ClutterActor *actor)
   g_list_free (children);
 }
 
+static gboolean
+meta_window_group_get_paint_volume (ClutterActor       *actor,
+                                    ClutterPaintVolume *volume)
+{
+  return clutter_paint_volume_set_from_allocation (volume, actor);
+}
+
 static void
 meta_window_group_class_init (MetaWindowGroupClass *klass)
 {
   ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass);
 
   actor_class->paint = meta_window_group_paint;
+  actor_class->get_paint_volume = meta_window_group_get_paint_volume;
 }
 
 static void


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