From 735c33bd9ffe4bae19e32638c0489e83beb90b85 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 12 Feb 2011 17:41:07 -0500 Subject: [PATCH] MetaBackgroundActor: Handle paint opacity We were ignoring the opacity set on the background actor, causing problems, e.g., when fading out the workspace thumbnails in GNOME Shell. https://bugzilla.gnome.org/show_bug.cgi?id=641979 --- src/compositor/meta-background-actor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compositor/meta-background-actor.c b/src/compositor/meta-background-actor.c index 77c8e31eb..7d980a180 100644 --- a/src/compositor/meta-background-actor.c +++ b/src/compositor/meta-background-actor.c @@ -190,10 +190,14 @@ static void meta_background_actor_paint (ClutterActor *actor) { MetaBackgroundActor *self = META_BACKGROUND_ACTOR (actor); + guchar opacity = clutter_actor_get_paint_opacity (actor); int width, height; meta_screen_get_size (self->screen, &width, &height); + cogl_material_set_color4ub (self->material, + opacity, opacity, opacity, opacity); + cogl_set_source (self->material); if (self->visible_region)