Commit 32848490 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

wayland: Call KSldApp::lockScreenShown() for layer-shell lockscreen clients

The lockscreen no longer creates xdg-toplevel surfaces.
parent d78d6866
......@@ -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(),
......
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