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

The lockscreen no longer creates xdg-toplevel surfaces.
This commit is contained in:
Vlad Zahorodnii 2021-05-12 22:14:42 +03:00
parent d78d686690
commit 32848490ba

View file

@ -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(),