[wayland] connect to greeterClientConnectionChanged instead of locked signal

locked signal might be too late to identify the greeter and its windows.
This commit is contained in:
Bhushan Shah 2015-11-09 14:15:04 +05:30
parent 56860e63f5
commit 6e70dd0ba2

View file

@ -215,7 +215,7 @@ void WaylandServer::initWorkspace()
ScreenLocker::KSldApp::self()->setWaylandDisplay(m_display); ScreenLocker::KSldApp::self()->setWaylandDisplay(m_display);
ScreenLocker::KSldApp::self()->initialize(); ScreenLocker::KSldApp::self()->initialize();
connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::locked, this, connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::greeterClientConnectionChanged, this,
[this] () { [this] () {
m_screenLockerClientConnection = ScreenLocker::KSldApp::self()->greeterClientConnection(); m_screenLockerClientConnection = ScreenLocker::KSldApp::self()->greeterClientConnection();
} }