metacity r3648 - in trunk: . src/core



Author: tthurman
Date: Mon Mar 10 13:52:55 2008
New Revision: 3648
URL: http://svn.gnome.org/viewvc/metacity?rev=3648&view=rev

Log:
2008-03-10  Josh Lee  <jleedev gmail com>

        * src/core/compositor.c (window_has_shadow): Don't shadow
	shaped windows.



Modified:
   trunk/ChangeLog
   trunk/src/core/compositor.c

Modified: trunk/src/core/compositor.c
==============================================================================
--- trunk/src/core/compositor.c	(original)
+++ trunk/src/core/compositor.c	Mon Mar 10 13:52:55 2008
@@ -777,6 +777,12 @@
   if (((MetaCompScreen *)cw->screen->compositor_data)->have_shadows == FALSE) 
     return FALSE;
 
+  /* Never put a shadow around shaped windows */
+  if (cw->shaped) {
+    meta_verbose ("Window has no shadow as it is shaped\n");
+    return FALSE;
+  }
+
   /* Always put a shadow around windows with a frame */
   if (cw->window) 
     {



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