From 32848490babd982f4a224b19d528bcddcd52cade Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 12 May 2021 22:14:42 +0300 Subject: [PATCH] wayland: Call KSldApp::lockScreenShown() for layer-shell lockscreen clients The lockscreen no longer creates xdg-toplevel surfaces. --- src/wayland_server.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index 5fed0ca37e..8f4b592a43 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -240,6 +240,10 @@ void WaylandServer::terminateClientConnections() void WaylandServer::registerShellClient(AbstractClient *client) { + if (client->isLockScreen()) { + ScreenLocker::KSldApp::self()->lockScreenShown(); + } + if (client->readyForPainting()) { emit shellClientAdded(client); } else { @@ -254,10 +258,6 @@ void WaylandServer::registerXdgToplevelClient(XdgToplevelClient *client) SurfaceInterface *surface = client->surface(); - if (surface->client() == m_screenLockerClientConnection) { - ScreenLocker::KSldApp::self()->lockScreenShown(); - } - registerShellClient(client); auto it = std::find_if(m_plasmaShellSurfaces.begin(), m_plasmaShellSurfaces.end(),