Commit 4d711942 authored by Helio Chissini de Castro's avatar Helio Chissini de Castro 💬

Fix for bug https://bugs.kde.org/show_bug.cgi?id=329375

Multihead locking session not properly locks all screens, leaving all
but first unlocked
parent 8b2c68c5
...@@ -151,8 +151,8 @@ void UnlockApp::desktopResized() ...@@ -151,8 +151,8 @@ void UnlockApp::desktopResized()
const bool canLogout = KAuthorized::authorizeKAction("logout") && KAuthorized::authorize("logout"); const bool canLogout = KAuthorized::authorizeKAction("logout") && KAuthorized::authorize("logout");
const QSet<Solid::PowerManagement::SleepState> spdMethods = Solid::PowerManagement::supportedSleepStates(); const QSet<Solid::PowerManagement::SleepState> spdMethods = Solid::PowerManagement::supportedSleepStates();
for (int i = m_views.count(); i < nScreens; ++i) { for (int i = m_views.count(); i < nScreens; ++i) {
// create the view // create the view - we need create a view per screen in multihead cases
QDeclarativeView *view = new QDeclarativeView(); QDeclarativeView *view = new QDeclarativeView(desktop()->screen(i));
connect(view, SIGNAL(statusChanged(QDeclarativeView::Status)), connect(view, SIGNAL(statusChanged(QDeclarativeView::Status)),
this, SLOT(viewStatusChanged(QDeclarativeView::Status))); this, SLOT(viewStatusChanged(QDeclarativeView::Status)));
view->setWindowFlags(Qt::X11BypassWindowManagerHint); view->setWindowFlags(Qt::X11BypassWindowManagerHint);
......
Markdown is supported
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