mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-19 19:28:08 +02:00
remove start session workaround and disable fadeout when greetd
exit belongs in the config
This commit is contained in:
parent
da52cc63be
commit
989c1f3652
2 changed files with 5 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue