fixed border animations lag

This commit is contained in:
vaxerski 2021-12-10 22:42:06 +01:00
parent 183026e2b7
commit 3216afbf12

View file

@ -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) {