From 3216afbf1276acb4871953c7a6e77df3f14b8aa2 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 10 Dec 2021 22:42:06 +0100 Subject: [PATCH] fixed border animations lag --- src/utilities/AnimationUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/AnimationUtil.cpp b/src/utilities/AnimationUtil.cpp index 36dced1..eb13787 100644 --- a/src/utilities/AnimationUtil.cpp +++ b/src/utilities/AnimationUtil.cpp @@ -18,7 +18,7 @@ void AnimationUtil::move() { // Border animations if (window.getDrawable() > 0) { - if (window.getEffectiveBorderColor() != window.getRealBorderColor()) { + if (window.getEffectiveBorderColor().getAsUint32() != window.getRealBorderColor().getAsUint32() /* As uint32 to round and not spam */) { // interp border color if enabled if (ConfigManager::getInt("anim:borders") == 1) {