Skip to content

Commit

Permalink
auth: move initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Mar 22, 2024
1 parent ba08709 commit 1c166e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/core/hyprlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ void CHyprlock::run() {

g_pRenderer = std::make_unique<CRenderer>();

g_pAuth = std::make_unique<CAuth>();
g_pAuth->start();

const auto CURRENTDESKTOP = getenv("XDG_CURRENT_DESKTOP");
const auto SZCURRENTD = std::string{CURRENTDESKTOP ? CURRENTDESKTOP : ""};

Expand Down
3 changes: 0 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ int main(int argc, char** argv, char** envp) {
return 1;
}

g_pAuth = std::make_unique<CAuth>();
g_pAuth->start();

g_pHyprlock = std::make_unique<CHyprlock>(wlDisplay, immediate);
g_pHyprlock->run();

Expand Down

0 comments on commit 1c166e8

Please sign in to comment.