@ -284,6 +284,7 @@ void CentralLayout::addView(Plasma::Containment *containment, bool forceOnPrimar
if (m_sharedLayout) {
//! consider already occupied edges from SharedLayout
Layout::ViewsMap ocMap = m_sharedLayout->validViewsMap();
qDebug() << " HIGH PRIORITY ALREADY OCCUPIED EDGES :: " << ocMap;
Layout::GenericLayout::addView(containment, forceOnPrimary, explicitScreen, &ocMap);
} else {
Layout::GenericLayout::addView(containment, forceOnPrimary, explicitScreen, occupied);
@ -654,7 +654,9 @@ void GenericLayout::addView(Plasma::Containment *containment, bool forceOnPrimar
id = containment->lastScreen();
}
if (explicitScreen > -1) {
if (onPrimary) {
id = m_corona->screenPool()->primaryScreenId();
} else if (explicitScreen > -1) {
id = explicitScreen;