summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-01-22 02:21:20 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-01-22 02:21:20 +0100
commit660f0c1017f2e3a97893222d1222a7a6d02e9edf (patch)
treef395cbcb24a8fb4eff6eb67969744ec081ca3e67 /plugins
parentc45bb94546d127ee1f26e9b58a1bc97cb401a545 (diff)
UnityWindow: don't draw fake decoration on windows that don't are decorable and unselected
We still want to paint it on selected windows, to show what they are. (bzr r3566.5.245)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unityshell/src/unityshell.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 1da31516f..1a238959f 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -3818,6 +3818,9 @@ void UnityWindow::paintFakeDecoration(nux::Geometry const& geo, GLWindowPaintAtt
if (!highlighted)
{
+ if (!compiz_utils::IsWindowFullyDecorable(window))
+ return;
+
BuildDecorationTexture();
if (decoration_tex_)