compositor: Fix regression of shaded windows

Fix issues drawing shaded window shadows.

https://bugzilla.gnome.org/show_bug.cgi?id=693714
This commit is contained in:
Stef Walter 2013-05-15 10:49:08 +02:00
parent a487d4dd01
commit dfa4c7d670

View File

@ -1645,7 +1645,7 @@ meta_window_actor_get_obscured_region (MetaWindowActor *self)
{ {
MetaWindowActorPrivate *priv = self->priv; MetaWindowActorPrivate *priv = self->priv;
if (priv->back_pixmap && priv->opacity == 0xff) if (priv->back_pixmap && priv->opacity == 0xff && !priv->window->shaded)
return priv->opaque_region; return priv->opaque_region;
else else
return NULL; return NULL;
@ -2146,6 +2146,9 @@ check_needs_reshape (MetaWindowActor *self)
client_area.x = borders.total.left; client_area.x = borders.total.left;
client_area.y = borders.total.top; client_area.y = borders.total.top;
client_area.width = priv->window->rect.width; client_area.width = priv->window->rect.width;
if (priv->window->shaded)
client_area.height = 0;
else
client_area.height = priv->window->rect.height; client_area.height = priv->window->rect.height;
meta_shaped_texture_set_mask_texture (META_SHAPED_TEXTURE (priv->actor), NULL); meta_shaped_texture_set_mask_texture (META_SHAPED_TEXTURE (priv->actor), NULL);