update struts in Single layout mode earlier

pull/17/head
Michail Vourlakos 5 years ago
parent e98ce9e0c8
commit 84a5eecf79

@ -570,7 +570,6 @@ void View::updateAbsoluteGeometry(bool bypassChecks)
//! this is needed in order to update correctly the screenGeometries //! this is needed in order to update correctly the screenGeometries
if (visibility() && corona() && visibility()->mode() == Types::AlwaysVisible) { if (visibility() && corona() && visibility()->mode() == Types::AlwaysVisible) {
//! main use of BYPASSCKECKS is from Positioner when the view changes screens //! main use of BYPASSCKECKS is from Positioner when the view changes screens
emit availableScreenRectChangedFrom(this); emit availableScreenRectChangedFrom(this);
emit availableScreenRegionChangedFrom(this); emit availableScreenRegionChangedFrom(this);
} }

@ -73,7 +73,7 @@ VisibilityManager::VisibilityManager(PlasmaQuick::ContainmentView *view)
connect(m_latteView, &Latte::View::inEditModeChanged, this, &VisibilityManager::initViewFlags); connect(m_latteView, &Latte::View::inEditModeChanged, this, &VisibilityManager::initViewFlags);
connect(m_latteView, &Latte::View::absoluteGeometryChanged, this, [&]() { connect(m_latteView, &Latte::View::absoluteGeometryChanged, this, [&]() {
if (m_mode == Types::AlwaysVisible && m_latteView->screen()) { if (m_mode == Types::AlwaysVisible) {
updateStrutsBasedOnLayoutsAndActivities(); updateStrutsBasedOnLayoutsAndActivities();
} }
}); });
@ -235,9 +235,7 @@ void VisibilityManager::setMode(Latte::Types::Visibility mode)
}); });
m_connections[base+2] = connect(m_latteView, &Latte::View::activitiesChanged, this, [&]() { m_connections[base+2] = connect(m_latteView, &Latte::View::activitiesChanged, this, [&]() {
if (m_corona && m_corona->layoutsManager()->memoryUsage() == MemoryUsage::MultipleLayouts) { updateStrutsBasedOnLayoutsAndActivities(true);
updateStrutsBasedOnLayoutsAndActivities(true);
}
}); });
raiseView(true); raiseView(true);

Loading…
Cancel
Save