identify screen id at startup for primary screens

pull/5/head
Michail Vourlakos 6 years ago
parent c653bbe14b
commit e13793df38

@ -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;
}

Loading…
Cancel
Save