summaryrefslogtreecommitdiff
path: root/kde-plasma/kwin/files/kwin-5.24.4-waylandserver-move-LockScreenPresentationWatcher.patch
blob: 0607e2ff30306bf39dddd6ac9e7c364ec236aea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 388402c3b1b37d9f72597aae8d6670e8c0edeb14 Mon Sep 17 00:00:00 2001
From: Xaver Hugl <xaver.hugl@gmail.com>
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<SeatInterface *> 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<SeatInterface *> seatIfaces = m_display->seats();
             for (auto *seat : seatIfaces) {
                 disconnect(seat, &KWaylandServer::SeatInterface::timestampChanged,
-- 
GitLab