diff options
author | Vaxry <[email protected]> | 2024-03-29 00:23:16 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-29 00:23:23 +0000 |
commit | 2930c5cb6f5d71dbdfd4d396287f90e19cd41228 (patch) | |
tree | 113e1ab6045b2f44c01f2fa0af44c7ef878b2cb6 /src/helpers/WLClasses.cpp | |
parent | d8429eebc66e7091381502edc0fc7335790f62e4 (diff) | |
download | Hyprland-2930c5cb6f5d71dbdfd4d396287f90e19cd41228.tar.gz Hyprland-2930c5cb6f5d71dbdfd4d396287f90e19cd41228.zip |
animvar: fixup update callbacks and cleanup
Diffstat (limited to 'src/helpers/WLClasses.cpp')
-rw-r--r-- | src/helpers/WLClasses.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/helpers/WLClasses.cpp b/src/helpers/WLClasses.cpp index edcdfb14..084a719d 100644 --- a/src/helpers/WLClasses.cpp +++ b/src/helpers/WLClasses.cpp @@ -3,12 +3,9 @@ #include "../Compositor.hpp" SLayerSurface::SLayerSurface() { - alpha.create(g_pConfigManager->getAnimationPropertyConfig("fadeLayers"), nullptr, AVARDAMAGE_ENTIRE); - realPosition.create(g_pConfigManager->getAnimationPropertyConfig("layers"), nullptr, AVARDAMAGE_ENTIRE); - realSize.create(g_pConfigManager->getAnimationPropertyConfig("layers"), nullptr, AVARDAMAGE_ENTIRE); - alpha.m_pLayer = this; - realPosition.m_pLayer = this; - realSize.m_pLayer = this; + alpha.create(g_pConfigManager->getAnimationPropertyConfig("fadeLayers"), this, AVARDAMAGE_ENTIRE); + realPosition.create(g_pConfigManager->getAnimationPropertyConfig("layers"), this, AVARDAMAGE_ENTIRE); + realSize.create(g_pConfigManager->getAnimationPropertyConfig("layers"), this, AVARDAMAGE_ENTIRE); alpha.registerVar(); realPosition.registerVar(); realSize.registerVar(); |