This commit is contained in:
Vaxry 2024-08-24 20:54:05 +02:00
parent 276652b44e
commit d3e26652d6

View file

@ -114,6 +114,7 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) {
m_fAlpha = in ? 1.F : 0.F;
// handle animation styles for the movement one
if (m_vRenderOffset.m_pConfig->pValues->internalEnabled) {
if (ANIMSTYLE.starts_with("slide") && ANIMSTYLE.contains("%")) {
const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID);
float movePerc = 0.F;
@ -164,8 +165,6 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) {
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) {
m_vRenderOffset.setValueAndWarp(Vector2D(left ? XDISTANCE : -XDISTANCE, 0.0));
m_vRenderOffset = Vector2D(0, 0);