check against the proper size

This commit is contained in:
Marco Martin 2014-02-18 11:48:18 +01:00
parent 6f8c3dd771
commit 337e92a78f

View file

@ -231,7 +231,7 @@ void SlidingPopupsEffect::paintWindow(EffectWindow* w, int mask, QRegion region,
break; break;
case South: case South:
default: default:
if (slideLength < geo.width()) { if (slideLength < geo.height()) {
data.multiplyOpacity(1 - progress); data.multiplyOpacity(1 - progress);
} }
data.translate(0.0, qMin(geo.height(), slideLength) * progress); data.translate(0.0, qMin(geo.height(), slideLength) * progress);