[mutter] compositor: Fix regression of shaded windows
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] compositor: Fix regression of shaded windows
- Date: Wed, 15 May 2013 14:53:43 +0000 (UTC)
commit dfa4c7d6701fe3eb581143c46a6a3416bab574ed
Author: Stef Walter <stefw gnome org>
Date: Wed May 15 10:49:08 2013 +0200
compositor: Fix regression of shaded windows
Fix issues drawing shaded window shadows.
https://bugzilla.gnome.org/show_bug.cgi?id=693714
src/compositor/meta-window-actor.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 04d754b..a998dd9 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -1645,7 +1645,7 @@ meta_window_actor_get_obscured_region (MetaWindowActor *self)
{
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;
else
return NULL;
@@ -2146,7 +2146,10 @@ check_needs_reshape (MetaWindowActor *self)
client_area.x = borders.total.left;
client_area.y = borders.total.top;
client_area.width = priv->window->rect.width;
- client_area.height = priv->window->rect.height;
+ if (priv->window->shaded)
+ client_area.height = 0;
+ else
+ client_area.height = priv->window->rect.height;
meta_shaped_texture_set_mask_texture (META_SHAPED_TEXTURE (priv->actor), NULL);
g_clear_pointer (&priv->shape_region, cairo_region_destroy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]