diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 47da17f04..e57516223 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -752,6 +752,13 @@ meta_window_actor_has_shadow (MetaWindowActor *self) if (priv->no_shadow) return FALSE; + /* Leaving out shadows for maximized and fullscreen windows is an effeciency + * win and also prevents the unsightly effect of the shadow of maximized + * window appearing on an adjacent window */ + if ((meta_window_get_maximized (priv->window) == (META_MAXIMIZE_HORIZONTAL | META_MAXIMIZE_VERTICAL)) || + meta_window_is_fullscreen (priv->window)) + return FALSE; + /* * Always put a shadow around windows with a frame - This should override * the restriction about not putting a shadow around ARGB windows.