mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
parent
362c8e1b69
commit
c17ea54371
3 changed files with 11 additions and 0 deletions
|
|
@ -109,6 +109,13 @@ void WlSessionLock::updateSurfaces(bool show, WlSessionLock* old) {
|
|||
|
||||
void WlSessionLock::realizeLockTarget(WlSessionLock* old) {
|
||||
if (this->lockTarget) {
|
||||
if (!SessionLockManager::lockAvailable()) {
|
||||
qCritical() << "Cannot start session lock: The current compositor does not support the "
|
||||
"ext-session-lock-v1 protocol.";
|
||||
this->unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
if (this->mSurfaceComponent == nullptr) {
|
||||
qWarning() << "WlSessionLock.surface is null. Aborting lock.";
|
||||
this->unlock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue