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.
This commit is contained in:
Adel Gadllah 2011-09-16 21:26:21 +02:00
parent 6923973c8a
commit abde64cb0c

View File

@ -1218,7 +1218,7 @@ meta_window_actor_should_unredirect (MetaWindowActor *self)
MetaWindow *metaWindow = meta_window_actor_get_meta_window (self); MetaWindow *metaWindow = meta_window_actor_get_meta_window (self);
MetaScreen *screen = meta_window_get_screen (metaWindow); 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; int screen_width, screen_height;
MetaRectangle window_rect; MetaRectangle window_rect;