From 87cceaf992c7784d5c1cc8c29bbaf2eb2fd5f190 Mon Sep 17 00:00:00 2001 From: Josh Lee Date: Mon, 10 Mar 2008 13:52:55 +0000 Subject: [PATCH] Don't shadow shaped windows. 2008-03-10 Josh Lee * src/core/compositor.c (window_has_shadow): Don't shadow shaped windows. svn path=/trunk/; revision=3648 --- ChangeLog | 5 +++++ src/core/compositor.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8b22adf7c..532975a1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-10 Josh Lee + + * src/core/compositor.c (window_has_shadow): Don't shadow + shaped windows. + 2008-03-07 Thomas Thurman * configure.in: Post-release bump to 2.23.3. diff --git a/src/core/compositor.c b/src/core/compositor.c index 1612cf5f7..7667147a8 100644 --- a/src/core/compositor.c +++ b/src/core/compositor.c @@ -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) {