Make Slideback work on OpenGL without PaintClipper

This commit is contained in:
Martin Gräßlin 2011-07-03 19:52:14 +02:00
parent 8fa22d0f6a
commit 1793343847

View file

@ -204,6 +204,9 @@ void SlideBackEffect::paintWindow(EffectWindow *w, int mask, QRegion region, Win
if (motionManager.isManaging(w)) {
motionManager.apply(w, data);
}
foreach (const QRegion &r, clippedRegions) {
region = region.intersected(r);
}
effects->paintWindow(w, mask, region, data);
for (int i = clippedRegions.count() - 1; i > -1; --i)
PaintClipper::pop(clippedRegions.at(i));