[mutter] Don't unredirect non fully opaque windows
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Don't unredirect non fully opaque windows
- Date: Fri, 16 Sep 2011 19:39:21 +0000 (UTC)
commit abde64cb0ca93789bbdc11749943c145c806e8ff
Author: Adel Gadllah <adel gadllah gmail com>
Date: Fri Sep 16 21:26:21 2011 +0200
Don't unredirect non fully opaque windows
When a window is set to be translucent with _NET_WM_WINDOW_OPACITY it shouldn't
be unredirected as this will cause the hint to have no effect.
src/compositor/meta-window-actor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 747da8a..7b3c07c 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -1218,7 +1218,7 @@ meta_window_actor_should_unredirect (MetaWindowActor *self)
MetaWindow *metaWindow = meta_window_actor_get_meta_window (self);
MetaScreen *screen = meta_window_get_screen (metaWindow);
- if (meta_window_is_override_redirect (metaWindow))
+ if (meta_window_is_override_redirect (metaWindow) && self->priv->opacity == 0xff)
{
int screen_width, screen_height;
MetaRectangle window_rect;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]