Merge branch 'Plasma/5.8'

wilder-5.14
Marco Martin 10 years ago
commit 02dde72d31
  1. 7
      shell/shellcorona.cpp

@ -1798,11 +1798,12 @@ int ShellCorona::screenForContainment(const Plasma::Containment *containment) co
//a containment with lastScreen() == 0 but another activity,
//won't be associated to a screen
// qDebug() << "ShellCorona screenForContainment: " << containment << " Last screen is " << containment->lastScreen();
for (int i = 0, count = qGuiApp->screens().count(); i<count; ++i) {
if (containment->lastScreen() == i &&
for (auto screen : qGuiApp->screens()) {
if (containment->lastScreen() == m_screenPool->id(screen->name()) &&
(containment->activity() == m_activityController->currentActivity() ||
containment->containmentType() == Plasma::Types::PanelContainment || containment->containmentType() == Plasma::Types::CustomPanelContainment)) {
return i;
return containment->lastScreen();
}
}

Loading…
Cancel
Save