From 4ffcdc41ff8233a92f02c633475ac3472b0998df Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 18 Mar 2024 18:29:57 +0000 Subject: [PATCH] animations: fix layer slide with fade fixes #5151 --- src/helpers/WLClasses.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/WLClasses.cpp b/src/helpers/WLClasses.cpp index c71271c8..d46f7e40 100644 --- a/src/helpers/WLClasses.cpp +++ b/src/helpers/WLClasses.cpp @@ -87,7 +87,8 @@ void SLayerSurface::startAnimation(bool in, bool instant) { } realSize.setValueAndWarp(geometry.size()); - alpha.setValueAndWarp(1.f); + alpha.setValueAndWarp(in ? 0.f : 1.f); + alpha = in ? 1.f : 0.f; Vector2D prePos;