From 15205f0079d36eeeba511d715255d885699cec20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 14 Nov 2012 03:21:36 +0100 Subject: SwitcherView: make the switcher windows thumbnail to grow with the switcher when animating (bzr r2846.1.44) --- plugins/unityshell/src/unityshell.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/unityshell') diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 8bd519a7e..f572f4e4f 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -3975,6 +3975,10 @@ void UnityWindow::paintThumbnail(nux::Geometry const& geo, float alpha, float sc mask |= PAINT_WINDOW_BLEND_MASK; attrib.opacity = OPAQUE; + // The thumbnail is still animating, don't draw the decoration as selected + if (selected && alpha < 1.0f) + selected = false; + paintFakeDecoration(geo, attrib, matrix, mask, selected, scale_ratio); } -- cgit v1.2.3