summaryrefslogtreecommitdiff
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authorXavier <xavi-b@users.noreply.github.com>2023-11-24 22:45:59 +0100
committerGitHub <noreply@github.com>2023-11-24 21:45:59 +0000
commit745b998587fc39db6e3f77caa54074da618cd509 (patch)
treea3336b7de32d294af56e06d45e9e091777b12547 /src/render/Renderer.cpp
parent1a2a2da6aa1b8ee0ff6b85112d088dcc5c93862f (diff)
renderer: Adding an option to disable first launch animation (#3933)
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 21517703..bc71978b 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -877,6 +877,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
static auto* const PRENDERTEX = &g_pConfigManager->getConfigValuePtr("misc:disable_hyprland_logo")->intValue;
static auto* const PBACKGROUNDCOLOR = &g_pConfigManager->getConfigValuePtr("misc:background_color")->intValue;
static auto* const PANIMENABLED = &g_pConfigManager->getConfigValuePtr("animations:enabled")->intValue;
+ static auto* const PFIRSTLAUNCHANIM = &g_pConfigManager->getConfigValuePtr("animations:first_launch_animation")->intValue;
static auto* const PTEARINGENABLED = &g_pConfigManager->getConfigValuePtr("general:allow_tearing")->intValue;
static int damageBlinkCleanup = 0; // because double-buffered
@@ -885,7 +886,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
damageBlinkCleanup = 0;
static bool firstLaunch = true;
- static bool firstLaunchAnimActive = true;
+ static bool firstLaunchAnimActive = *PFIRSTLAUNCHANIM;
float zoomInFactorFirstLaunch = 1.f;