core: use --immediate for attemptRestoreOnDeath (#270)

This commit is contained in:
Maximilian Seidler 2024-04-10 12:28:24 +02:00 committed by GitHub
parent 1bfe32e7fa
commit d9f6441254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1049,5 +1049,5 @@ void CHyprlock::attemptRestoreOnDeath() {
ofs.close(); ofs.close();
spawnSync("hyprctl keyword misc:allow_session_lock_restore true"); spawnSync("hyprctl keyword misc:allow_session_lock_restore true");
spawnAsync("sleep 2 && hyprlock & disown"); spawnAsync("sleep 2 && hyprlock --immediate & disown");
} }