From c996dde5cb5cf0508dfe90b8882c6c3daa109309 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sat, 2 Mar 2013 13:04:20 +0100 Subject: [PATCH] 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 file changed, 8 insertions(+) diff --git a/src/compositor/meta-window-group.c b/src/compositor/meta-window-group.c index 5dba9711a..f499cb7a6 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