Skip to content

Commit

Permalink
auth: fix auth start
Browse files Browse the repository at this point in the history
i am retarded
  • Loading branch information
PaideiaDilemma committed Mar 22, 2024
1 parent 1c166e8 commit 690cf4e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/hyprlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,6 @@ 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 All @@ -382,6 +379,9 @@ void CHyprlock::run() {

acquireSessionLock();

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

registerSignalAction(SIGUSR1, handleUnlockSignal, SA_RESTART);
registerSignalAction(SIGUSR2, handleForceUpdateSignal);
registerSignalAction(SIGRTMIN, handlePollTerminate);
Expand Down Expand Up @@ -755,6 +755,9 @@ void CHyprlock::onPasswordCheckTimer() {
}

void CHyprlock::clearPasswordBuffer() {
if (m_sPasswordState.passBuffer.empty())
return;

m_sPasswordState.passBuffer = "";
for (auto& o : m_vOutputs) {
o->sessionLockSurface->render();
Expand Down

0 comments on commit 690cf4e

Please sign in to comment.