From 1c166e82910c3ebeb0f93a1eaf34dedfa1f210df Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Fri, 22 Mar 2024 16:14:48 +0100 Subject: [PATCH] auth: move initialization --- src/core/hyprlock.cpp | 3 +++ src/main.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index eb653918..b3e82479 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -358,6 +358,9 @@ void CHyprlock::run() { g_pRenderer = std::make_unique(); + g_pAuth = std::make_unique(); + g_pAuth->start(); + const auto CURRENTDESKTOP = getenv("XDG_CURRENT_DESKTOP"); const auto SZCURRENTD = std::string{CURRENTDESKTOP ? CURRENTDESKTOP : ""}; diff --git a/src/main.cpp b/src/main.cpp index f40a0f4b..8bc156f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,9 +51,6 @@ int main(int argc, char** argv, char** envp) { return 1; } - g_pAuth = std::make_unique(); - g_pAuth->start(); - g_pHyprlock = std::make_unique(wlDisplay, immediate); g_pHyprlock->run();