fix(slock): make SessionLock.secure accurate
This commit is contained in:
parent
cbdfba1a3f
commit
0b529c6682
5 changed files with 11 additions and 2 deletions
|
|
@ -18,3 +18,6 @@ QSWaylandSessionLock* QSWaylandSessionLockManager::acquireLock() {
|
|||
}
|
||||
|
||||
bool QSWaylandSessionLockManager::isLocked() const { return this->active != nullptr; }
|
||||
bool QSWaylandSessionLockManager::isSecure() const {
|
||||
return this->isLocked() && this->active->hasCompositorLock();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue