summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-10-01 17:18:40 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-10-01 17:18:40 +0200
commit8714ad79533a71047a4c4a7b972ced3e21bd5007 (patch)
treee52736c24d78a59703fbfd01bef85dc1fecfdf77 /unity-shared
parentfc6a502f9a9eea8f329abddfbcede192101822de (diff)
CompizUtils: don't remove shadows to windows that have Motif borders set
Such as gtk windows with HeaderBar when using Gtk <= 3.10 (bzr r3806.12.29)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/CompizUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unity-shared/CompizUtils.cpp b/unity-shared/CompizUtils.cpp
index 1ee54baa0..94322a68f 100644
--- a/unity-shared/CompizUtils.cpp
+++ b/unity-shared/CompizUtils.cpp
@@ -217,7 +217,7 @@ unsigned WindowDecorationElements(CompWindow* win)
elements |= DecorationElement::BORDER;
}
- if (alpha && !(elements & DecorationElement::BORDER))
+ if (alpha && !(elements & DecorationElement::BORDER) && !(win->mwmDecor() & MwmDecorBorder))
elements &= ~DecorationElement::SHADOW;
return elements;