Don't shadow shaped windows.

2008-03-10  Josh Lee  <jleedev@gmail.com>

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


svn path=/trunk/; revision=3648
This commit is contained in:
Josh Lee 2008-03-10 13:52:55 +00:00 committed by Thomas James Alexander Thurman
parent f77dba7ac2
commit 87cceaf992
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-03-10 Josh Lee <jleedev@gmail.com>
* src/core/compositor.c (window_has_shadow): Don't shadow
shaped windows.
2008-03-07 Thomas Thurman <tthurman@gnome.org>
* configure.in: Post-release bump to 2.23.3.

View File

@ -777,6 +777,12 @@ window_has_shadow (MetaCompWindow *cw)
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)
{