mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-17 05:06:00 +01: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
1 changed files with 0 additions and 7 deletions
|
@ -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 a new issue