Check the opacity of the right actor

When determining if the window is opaque or not, look at it's opacity,
not the opacity of the window group.

Reported by Matthias Clasen
http://bugzilla.gnome.org/show_bug.cgi?id=591836
This commit is contained in:
Owen W. Taylor 2009-08-14 15:52:30 -04:00
parent 91baf552cf
commit f03d39eefb

View File

@ -136,7 +136,7 @@ mutter_window_group_paint (ClutterActor *actor)
mutter_window_set_visible_region (cw, visible_region);
if (clutter_actor_get_paint_opacity (actor) == 0xff)
if (clutter_actor_get_paint_opacity (CLUTTER_ACTOR (cw)) == 0xff)
{
GdkRegion *obscured_region = mutter_window_get_obscured_region (cw);
if (obscured_region)