From 61c817319f27d988b8ae7cfe66d0a0339f760a29 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 14 Feb 2023 17:10:17 +0000 Subject: [PATCH] don't loop border anim on disabled --- src/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Window.cpp b/src/Window.cpp index 3d109667..de44f28d 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -313,7 +313,7 @@ void CWindow::onBorderAngleAnimEnd(void* ptr) { const std::string STYLE = PANIMVAR->getConfig()->pValues->internalStyle; - if (STYLE != "loop") + if (STYLE != "loop" || !PANIMVAR->getConfig()->pValues->internalEnabled) return; PANIMVAR->setCallbackOnEnd(nullptr); // we remove the callback here because otherwise setvalueandwarp will recurse this