waylandserver: handle lock state changing properly

BUG: 316734
This commit is contained in:
Xaver Hugl 2022-09-23 14:48:49 +02:00
parent 3546cc0541
commit 3af2d93c2e

View file

@ -587,7 +587,6 @@ void WaylandServer::initScreenLocker()
connect(seat, &KWaylandServer::SeatInterface::timestampChanged,
screenLockerApp, &ScreenLocker::KSldApp::userActivity);
}
Q_EMIT lockStateChanged();
});
connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::unlocked, this, [this, screenLockerApp]() {
@ -603,9 +602,10 @@ void WaylandServer::initScreenLocker()
screenLockerApp, &ScreenLocker::KSldApp::userActivity);
}
ScreenLocker::KSldApp::self()->setWaylandFd(-1);
Q_EMIT lockStateChanged();
});
connect(screenLockerApp, &ScreenLocker::KSldApp::lockStateChanged, this, &WaylandServer::lockStateChanged);
ScreenLocker::KSldApp::self()->initialize();
if (m_initFlags.testFlag(InitializationFlag::LockScreen)) {