aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-24 20:31:14 +0200
committerVaxry <[email protected]>2024-08-24 20:31:14 +0200
commit00319c01d4a6919f0036e21f1a19e8309ddecb81 (patch)
treefaf62ed8a169867165d69297250b794827c23981
parentb50927375919a16c51192c4c2e8c5cf3f86c05b2 (diff)
downloadHyprland-00319c01d4a6919f0036e21f1a19e8309ddecb81.tar.gz
Hyprland-00319c01d4a6919f0036e21f1a19e8309ddecb81.zip
def 0%
-rw-r--r--src/desktop/Workspace.cpp4
1 files 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);