From 388402c3b1b37d9f72597aae8d6670e8c0edeb14 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 6 Apr 2022 21:08:25 +0200 Subject: [PATCH] waylandserver: move LockScreenPresentationWatcher to the correct place CCBUG: 452334 --- src/wayland_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index 6d5e1206a5..eb3600f824 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -603,6 +603,8 @@ void WaylandServer::initScreenLocker() } ScreenLocker::KSldApp::self()->setWaylandFd(clientFd); + new LockScreenPresentationWatcher(this); + const QVector seatIfaces = m_display->seats(); for (auto *seat : seatIfaces) { connect(seat, &KWaylandServer::SeatInterface::timestampChanged, @@ -619,8 +621,6 @@ void WaylandServer::initScreenLocker() m_screenLockerClientConnection = nullptr; } - new LockScreenPresentationWatcher(this); - const QVector seatIfaces = m_display->seats(); for (auto *seat : seatIfaces) { disconnect(seat, &KWaylandServer::SeatInterface::timestampChanged, -- GitLab