wayland: Call KSldApp::lockScreenShown() for layer-shell lockscreen clients
The lockscreen no longer creates xdg-toplevel surfaces.
This commit is contained in:
parent
d78d686690
commit
32848490ba
1 changed files with 4 additions and 4 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue