[mutter] MetaWindowActor: don't draw shadows for tiled windows with a match



commit a8ead4d447c0de248d68bd6cfa88daeb0135732e
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Sep 5 01:49:40 2011 +0100

    MetaWindowActor: don't draw shadows for tiled windows with a match
    
    The shadow between 2 tiled windows ruins the visual tiles effect.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=643075

 src/compositor/meta-window-actor.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index cd5e9a3..5e5e2c8 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -740,6 +740,13 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
     return FALSE;
 
   /*
+   * If we have two snap-tiled windows, we don't want the shadow to obstruct
+   * the other window.
+   */
+  if (meta_window_get_tile_match (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.
    */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]