diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-11-14 03:21:36 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-11-14 03:21:36 +0100 |
| commit | 15205f0079d36eeeba511d715255d885699cec20 (patch) | |
| tree | 49ba7656e860c504c7b557187c574aad8b8a43a4 /plugins/unityshell | |
| parent | c35f84ab9310452113ffec033e1b9cfefad273c8 (diff) | |
SwitcherView: make the switcher windows thumbnail to grow with the switcher when animating
(bzr r2846.1.44)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |
