aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/helpers/WLClasses.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-05-14 17:23:46 +0200
committervaxerski <[email protected]>2022-05-14 17:23:46 +0200
commit109136af97547f35f767dae2e7908ab218dfea11 (patch)
tree806d931d2a3d7d04a9a5faecfcf46d5470f1633f /src/helpers/WLClasses.cpp
parent694f4433a2b6083cef5a4f43e974f9c70b9857af (diff)
downloadHyprland-109136af97547f35f767dae2e7908ab218dfea11.tar.gz
Hyprland-109136af97547f35f767dae2e7908ab218dfea11.zip
Fadein/out now applies to layersurfaces too
Diffstat (limited to 'src/helpers/WLClasses.cpp')
-rw-r--r--src/helpers/WLClasses.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.cpp b/src/helpers/WLClasses.cpp
new file mode 100644
index 00000000..82e41b4f
--- /dev/null
+++ b/src/helpers/WLClasses.cpp
@@ -0,0 +1,7 @@
+#include "WLClasses.hpp"
+#include "../config/ConfigManager.hpp"
+
+SLayerSurface::SLayerSurface() {
+ alpha.create(AVARTYPE_FLOAT, &g_pConfigManager->getConfigValuePtr("animations:fadein_speed")->floatValue, &g_pConfigManager->getConfigValuePtr("animations:fadein")->intValue, &g_pConfigManager->getConfigValuePtr("animations:fadein_curve")->strValue, nullptr, AVARDAMAGE_ENTIRE);
+ alpha.m_pLayer = this;
+} \ No newline at end of file