mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-10-30 05:51:44 +00:00
sessionLock: fix misc:allow_session_lock_restore (#7511)
* Revert "sessionLock: fix the check for locking a locked session (#6843)"
This reverts commit 9ff83f4aa9
.
* sessionLock: remove early check for session beeing locked
It is checked in the `onNewSessionLock` handler, which also respects the
`misc:allow_session_lock_restore` option.
This commit is contained in:
parent
83ab3ae0af
commit
28f6c2df59
@ -175,13 +175,6 @@ void CSessionLockProtocol::onLock(CExtSessionLockManagerV1* pMgr, uint32_t id) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (locked) {
|
|
||||||
LOGM(ERR, "Tried to lock a locked session");
|
|
||||||
RESOURCE->inert = true;
|
|
||||||
RESOURCE->resource->sendFinished();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
events.newLock.emit(RESOURCE);
|
events.newLock.emit(RESOURCE);
|
||||||
|
|
||||||
locked = true;
|
locked = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user