[wayland] Adapt to changes in the kscreenlocker

Initialize is no longer called by KSldApp ctor, and also pass
KWayland::Server::Display* to KSldApp.

Reviewed-By: Martin Gräßlin
icc-effect-5.14.5
Bhushan Shah 2015-11-06 16:51:34 +05:30
parent 3a8d7d866a
commit c957b145a4
1 changed files with 3 additions and 0 deletions

View File

@ -210,7 +210,10 @@ void WaylandServer::initWorkspace()
}
);
}
ScreenLocker::KSldApp::self();
ScreenLocker::KSldApp::self()->setWaylandDisplay(m_display);
ScreenLocker::KSldApp::self()->initialize();
if (m_initFlags.testFlag(InitalizationFlag::LockScreen)) {
ScreenLocker::KSldApp::self()->lock(ScreenLocker::EstablishLock::Immediate);
}