mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-25 17:03:49 -07:00
sessionLock: fix the check for locking a locked session (#6843)
This commit is contained in:
committed by
GitHub
parent
3247d18a7c
commit
9ff83f4aa9
@@ -177,7 +177,7 @@ void CSessionLockProtocol::onLock(CExtSessionLockManagerV1* pMgr, uint32_t id) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_vLocks.size() > 1) {
|
if (locked) {
|
||||||
LOGM(ERR, "Tried to lock a locked session");
|
LOGM(ERR, "Tried to lock a locked session");
|
||||||
RESOURCE->inert = true;
|
RESOURCE->inert = true;
|
||||||
RESOURCE->resource->sendFinished();
|
RESOURCE->resource->sendFinished();
|
||||||
|
Reference in New Issue
Block a user