forked from quickshell/quickshell
fix(slock): make SessionLock.secure accurate
This commit is contained in:
parent
cbdfba1a3f
commit
0b529c6682
5 changed files with 11 additions and 2 deletions
|
@ -89,7 +89,10 @@ void SessionLock::updateSurfaces(SessionLock* old) {
|
|||
instance->onReload(oldInstance);
|
||||
|
||||
this->surfaces[screen] = instance;
|
||||
instance->show();
|
||||
}
|
||||
|
||||
for (auto* surface: this->surfaces.values()) {
|
||||
surface->show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +120,7 @@ bool SessionLock::isLocked() const {
|
|||
}
|
||||
|
||||
bool SessionLock::isSecure() const {
|
||||
return this->manager != nullptr && SessionLockManager::sessionLocked();
|
||||
return this->manager != nullptr && SessionLockManager::isSecure();
|
||||
}
|
||||
|
||||
void SessionLock::setLocked(bool locked) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue