diff --git a/kdecoration/breezedecoration.cpp b/kdecoration/breezedecoration.cpp index c1a238d9..5e702fd6 100644 --- a/kdecoration/breezedecoration.cpp +++ b/kdecoration/breezedecoration.cpp @@ -222,7 +222,7 @@ namespace Breeze m_shadowAnimation->setStartValue( 0.0 ); m_shadowAnimation->setEndValue( 1.0 ); - m_shadowAnimation->setEasingCurve( QEasingCurve::InCubic ); + m_shadowAnimation->setEasingCurve( QEasingCurve::OutCubic ); connect(m_shadowAnimation, &QVariantAnimation::valueChanged, this, [this](const QVariant& value) { m_shadowOpacity = value.toReal(); updateShadow(); @@ -301,6 +301,7 @@ namespace Breeze const auto c = client().toStrongRef(); m_shadowAnimation->setDirection( c->isActive() ? QAbstractAnimation::Forward : QAbstractAnimation::Backward ); + m_shadowAnimation->setEasingCurve( c->isActive() ? QEasingCurve::OutCubic : QEasingCurve::InCubic ); if( m_shadowAnimation->state() != QAbstractAnimation::Running ) m_shadowAnimation->start(); } else {