remove start session workaround and disable fadeout when greetd

exit belongs in the config
This commit is contained in:
Maximilian Seidler 2026-04-04 09:17:38 +02:00
parent da52cc63be
commit 989c1f3652
2 changed files with 5 additions and 6 deletions

View file

@ -230,12 +230,8 @@ void CGreetdLogin::startSessionAfterSuccess() {
// TODO: Is there a response for this? Should we check it?
if (!sendGreetdRequest(m_socketFD, REQUEST))
m_ok = false;
else {
if (g_pHyprlock->m_currentDesktop == "Hyprland")
spawnSync("hyprctl dispatch exit");
else
g_pAuth->enqueueUnlock();
}
else
g_pAuth->enqueueUnlock();
}
void CGreetdLogin::cancelSession() {

View file

@ -93,6 +93,9 @@ int main(int argc, char** argv, char** envp) {
if (noFadeIn)
g_pConfigManager->m_AnimationTree.setConfigForNode("fadeIn", false, 0.f, "default");
if (greetdLogin)
g_pConfigManager->m_AnimationTree.setConfigForNode("fadeOut", false, 0.f, "default");
try {
g_pHyprlock = makeUnique<CHyprlock>(wlDisplay, immediateRender, graceSeconds, greetdLogin, sessionDirs);
g_pHyprlock->run();