summaryrefslogtreecommitdiff
path: root/src/events/Layers.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-28 13:28:43 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-28 13:28:43 +0200
commit920fdd6bff0f78d6f7f5de6167a23af303e00e57 (patch)
treeff28eaba4ee9c6647e0a3b8ac1fab1cb8e14fbf3 /src/events/Layers.cpp
parent9dd17a4be6a719ab0cc501f63cf07cfd066f3ef8 (diff)
Animation config rework
Diffstat (limited to 'src/events/Layers.cpp')
-rw-r--r--src/events/Layers.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp
index 83d7d8dd..2ee242c3 100644
--- a/src/events/Layers.cpp
+++ b/src/events/Layers.cpp
@@ -108,6 +108,9 @@ void Events::listener_mapLayerSurface(void* owner, void* data) {
layersurface->layerSurface->mapped = true;
layersurface->mapped = true;
+ // anim
+ layersurface->alpha.setConfig(g_pConfigManager->getAnimationPropertyConfig("fadeIn"));
+
// fix if it changed its mon
const auto PMONITOR = g_pCompositor->getMonitorFromOutput(layersurface->layerSurface->output);
@@ -168,6 +171,9 @@ void Events::listener_unmapLayerSurface(void* owner, void* data) {
return;
}
+ // anim
+ layersurface->alpha.setConfig(g_pConfigManager->getAnimationPropertyConfig("fadeOut"));
+
// make a snapshot and start fade
g_pHyprOpenGL->makeLayerSnapshot(layersurface);
layersurface->alpha = 0.f;