fix pure fade

This commit is contained in:
Vaxry 2024-08-24 20:53:27 +02:00
parent 746f804568
commit 276652b44e

View file

@ -164,12 +164,15 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) {
m_fScaleClients.setValueAndWarp(1.F); m_fScaleClients.setValueAndWarp(1.F);
// special case: fade enabled but this anim is disabled, so don't change anything. Only do the anim otherwise.
if (m_vRenderOffset.m_pConfig->pValues->internalEnabled || !m_fAlpha.m_pConfig->pValues->internalEnabled) {
if (in) { if (in) {
m_vRenderOffset.setValueAndWarp(Vector2D(left ? XDISTANCE : -XDISTANCE, 0.0)); m_vRenderOffset.setValueAndWarp(Vector2D(left ? XDISTANCE : -XDISTANCE, 0.0));
m_vRenderOffset = Vector2D(0, 0); m_vRenderOffset = Vector2D(0, 0);
} else } else
m_vRenderOffset = Vector2D(left ? -XDISTANCE : XDISTANCE, 0.0); m_vRenderOffset = Vector2D(left ? -XDISTANCE : XDISTANCE, 0.0);
} }
}
if (instant) { if (instant) {
m_vRenderOffset.warp(); m_vRenderOffset.warp();