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
This commit is contained in:
parent
47626a17d7
commit
735c33bd9f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user