From 00319c01d4a6919f0036e21f1a19e8309ddecb81 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 24 Aug 2024 20:31:14 +0200 Subject: [PATCH] def 0% --- src/desktop/Workspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop/Workspace.cpp b/src/desktop/Workspace.cpp index 36bd08d4..6b1e23b8 100644 --- a/src/desktop/Workspace.cpp +++ b/src/desktop/Workspace.cpp @@ -116,7 +116,7 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) { // handle animation styles for the movement one if (ANIMSTYLE.starts_with("slide") && ANIMSTYLE.contains("%")) { const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID); - float movePerc = 100.f; + float movePerc = 0.F; try { auto percstr = ANIMSTYLE.substr(ANIMSTYLE.find_last_of(' ') + 1); @@ -143,7 +143,7 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) { } else if (ANIMSTYLE.starts_with("popin")) { m_vRenderOffset.setValueAndWarp(Vector2D(0, 0)); - float startPerc = 100.f; + float startPerc = 0.F; try { auto percstr = ANIMSTYLE.substr(ANIMSTYLE.find_last_of(' ') + 1);