summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2014-10-21 16:32:10 +0100
committerStefano Karapetsas <[email protected]>2014-10-22 08:46:17 +0200
commitea3d424d7ea4824121498ae15af82d56c8378ed5 (patch)
tree0b35159de580ca5402fb924933c6e0a62ef81725 /src
parentc0e2e498140a413190dcf8e6436072ee2fe59f94 (diff)
downloadmarco-ea3d424d7ea4824121498ae15af82d56c8378ed5.tar.bz2
marco-ea3d424d7ea4824121498ae15af82d56c8378ed5.tar.xz
compositor-xrender: don't add shadows to ARGB windows
Diffstat (limited to 'src')
-rw-r--r--src/compositor/compositor-xrender.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index dbd7bd94..9bf9d8d1 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -911,6 +911,12 @@ window_has_shadow (MetaCompWindow *cw)
}
}
+ /* Do not add shadows to ARGB windows */
+ if (cw->mode == WINDOW_ARGB) {
+ meta_verbose ("Window has no shadow as it is ARGB\n");
+ return FALSE;
+ }
+
/* Never put a shadow around shaped windows */
if (cw->shaped) {
meta_verbose ("Window has no shadow as it is shaped\n");