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();