position properly primary config win on first call

--sometimes when the primary config window is first called
it was wrongly positioned at most bottom-left screen corner
work/spdx
Michail Vourlakos 4 years ago
parent 9e487b613b
commit 53231392ba

@ -321,7 +321,6 @@ void PrimaryConfigView::instantUpdateAvailableScreenGeometry()
QString activityid = m_latteView->layout()->lastUsedActivity();
m_availableScreenGeometry = m_corona->availableScreenRectWithCriteria(currentScrId, activityid, ignoreModes, {}, false, true);
emit availableScreenGeometryChanged();
}
@ -407,7 +406,9 @@ void PrimaryConfigView::syncGeometry()
auto geometry = QRect(position.x(), position.y(), size.width(), size.height());
if (m_geometryWhenVisible == geometry) {
QRect winGeometry(x(), y(), width(), height());
if (m_geometryWhenVisible == geometry && winGeometry == geometry) {
return;
}

Loading…
Cancel
Save