Ensure Lanczos is disabled during start animation

For what reason ever motion manager thinks that windows are not
moving during the start animation (but are during the stop animation).
So we also have to look on the timeline to decide whether we should
disable lanczos filter on the windows.

Now wonder the animation was stuttering.
BUG: 274292
FIXED-IN: 4.7.0
This commit is contained in:
Martin Gräßlin 2011-05-28 17:41:27 +02:00
parent 20941aca53
commit f9ecbee57b

View file

@ -312,7 +312,7 @@ void DesktopGridEffect::paintWindow(EffectWindow* w, int mask, QRegion region, W
screenQuads.append(quad);
transformedGeo = manager.transformedGeometry(w);
quadsAdded = true;
if (!manager.areWindowsMoving())
if (!manager.areWindowsMoving() && timeline.currentValue() == 1.0)
mask |= PAINT_WINDOW_LANCZOS;
} else if (w->screen() != screen)
quadsAdded = true; // we don't want parts of overlapping windows on the other screen