mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 13:29:48 +01:00
core: handle ext_session_lock_v1::finished as defined in the protocol (#418)
This commit is contained in:
parent
e5f0b56d07
commit
b407128cae
1 changed files with 9 additions and 2 deletions
|
@ -959,8 +959,15 @@ void CHyprlock::onLockLocked() {
|
|||
|
||||
void CHyprlock::onLockFinished() {
|
||||
Debug::log(LOG, "onLockFinished called. Seems we got yeeten. Is another lockscreen running?");
|
||||
g_pRenderer = nullptr;
|
||||
exit(1);
|
||||
if (m_bLocked)
|
||||
// The `finished` event specifies that whenever the `locked` event has been recieved and the compositor sends `finished`,
|
||||
// `unlock_and_destroy` should be called by the client.
|
||||
// This does not mean the session gets unlocked! That is ultimatly the responsiblity of the compositor.
|
||||
ext_session_lock_v1_unlock_and_destroy(m_sLockState.lock);
|
||||
else
|
||||
ext_session_lock_v1_destroy(m_sLockState.lock);
|
||||
|
||||
m_bTerminate = true;
|
||||
}
|
||||
|
||||
ext_session_lock_manager_v1* CHyprlock::getSessionLockMgr() {
|
||||
|
|
Loading…
Reference in a new issue