summaryrefslogtreecommitdiff
path: root/src/managers/AnimationManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-13 21:32:23 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-13 21:32:28 +0100
commit670d6ce8f476cbdced7aa62e7d8c16a48bccf0d5 (patch)
tree308bbc015bdcbfc1f688162cfe4dc7d8dfb6b6ec /src/managers/AnimationManager.cpp
parentf3917f21228b26807a320c22890c92b4bd890c8a (diff)
fix windowsOut disabled with fadeOut enabled
Diffstat (limited to 'src/managers/AnimationManager.cpp')
-rw-r--r--src/managers/AnimationManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp
index b79f28bd..c5d7bb1d 100644
--- a/src/managers/AnimationManager.cpp
+++ b/src/managers/AnimationManager.cpp
@@ -361,6 +361,10 @@ void CAnimationManager::onWindowPostCreateClose(CWindow* pWindow, bool close) {
if (!pWindow->m_vRealPosition.isBeingAnimated() && !pWindow->m_vRealSize.isBeingAnimated())
return;
+ // if the animation is disabled and we are leaving, ignore the anim to prevent the snapshot being fucked
+ if (!pWindow->m_vRealPosition.m_pConfig->pValues->internalEnabled)
+ return;
+
if (pWindow->m_sAdditionalConfigData.animationStyle != "") {
// the window has config'd special anim
if (pWindow->m_sAdditionalConfigData.animationStyle.find("slide") == 0) {