waylandserver: handle lock state changing properly
BUG: 316734
This commit is contained in:
parent
3546cc0541
commit
3af2d93c2e
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue