From 8714ad79533a71047a4c4a7b972ced3e21bd5007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 1 Oct 2014 17:18:40 +0200 Subject: 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) --- unity-shared/CompizUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unity-shared') 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; -- cgit v1.2.3