summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-02-06 19:20:13 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-02-06 19:20:13 +0100
commite333d1b34e0cde55e25b33b71a8851efc102921a (patch)
treea947df1cff4475773ddbea36b7360f98f2c09b3d /plugins
parent2c824c155f580935c5d822d2f705fd119945fd99 (diff)
UnityShell: draw the switcher targets also when fading-out...
(bzr r3132.2.5)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unityshell/src/unityshell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index d23b087b1..9a82e72e8 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -802,7 +802,7 @@ void UnityScreen::paintDisplay()
}
}
- if (switcher_controller_->Visible())
+ if (switcher_controller_->Opacity() > 0.0f)
{
LayoutWindow::Vector const& targets = switcher_controller_->ExternalRenderTargets();
@@ -3808,7 +3808,7 @@ void UnityWindow::paintThumbnail(nux::Geometry const& geo, float alpha, float pa
paintThumb(attrib, matrix, mask, g.x, g.y, g.width, g.height, g.width, g.height);
mask |= PAINT_WINDOW_BLEND_MASK;
- attrib.opacity = (parent_alpha >= 1.0f) ? OPAQUE : parent_alpha * G_MAXUSHORT;
+ attrib.opacity = parent_alpha * G_MAXUSHORT;
// The thumbnail is still animating, don't draw the decoration as selected
if (selected && alpha < 1.0f)