mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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:

committed by
Thomas James Alexander Thurman

parent
f77dba7ac2
commit
87cceaf992
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user