Commit 388402c3 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

waylandserver: move LockScreenPresentationWatcher to the correct place

CCBUG: 452334
parent 5390a497
Pipeline #160507 passed with stage
in 12 minutes and 4 seconds
...@@ -603,6 +603,8 @@ void WaylandServer::initScreenLocker() ...@@ -603,6 +603,8 @@ void WaylandServer::initScreenLocker()
} }
ScreenLocker::KSldApp::self()->setWaylandFd(clientFd); ScreenLocker::KSldApp::self()->setWaylandFd(clientFd);
new LockScreenPresentationWatcher(this);
const QVector<SeatInterface *> seatIfaces = m_display->seats(); const QVector<SeatInterface *> seatIfaces = m_display->seats();
for (auto *seat : seatIfaces) { for (auto *seat : seatIfaces) {
connect(seat, &KWaylandServer::SeatInterface::timestampChanged, connect(seat, &KWaylandServer::SeatInterface::timestampChanged,
...@@ -619,8 +621,6 @@ void WaylandServer::initScreenLocker() ...@@ -619,8 +621,6 @@ void WaylandServer::initScreenLocker()
m_screenLockerClientConnection = nullptr; m_screenLockerClientConnection = nullptr;
} }
new LockScreenPresentationWatcher(this);
const QVector<SeatInterface *> seatIfaces = m_display->seats(); const QVector<SeatInterface *> seatIfaces = m_display->seats();
for (auto *seat : seatIfaces) { for (auto *seat : seatIfaces) {
disconnect(seat, &KWaylandServer::SeatInterface::timestampChanged, disconnect(seat, &KWaylandServer::SeatInterface::timestampChanged,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment