Fix a rendering glitch caused by the reflections in CoverSwitch

Seems like we need to use drawWindow instead of paintWindow or
KWin will keep some parts of the paint data.

BUG: 276810
FIXED-IN: 4.7.0
This commit is contained in:
Martin Gräßlin 2011-07-03 11:07:27 +02:00
parent b837a3fca1
commit 5c0d24c7bf

View file

@ -752,7 +752,7 @@ void CoverSwitchEffect::paintWindowCover(EffectWindow* w, bool reflectedWindow,
} else if (stop) {
data.opacity *= 1.0 - timeLine.currentValue();
}
effects->paintWindow(w,
effects->drawWindow(w,
PAINT_WINDOW_TRANSFORMED,
infiniteRegion(), data);
shader->setUniform("screenTransformation", origMatrix);