1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-13 04:58:18 +03:00

update struts in Single layout mode earlier

This commit is contained in:
Michail Vourlakos 2020-05-23 20:04:37 +03:00
parent e98ce9e0c8
commit 84a5eecf79
2 changed files with 2 additions and 5 deletions

View File

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

View File

@ -73,7 +73,7 @@ VisibilityManager::VisibilityManager(PlasmaQuick::ContainmentView *view)
connect(m_latteView, &Latte::View::inEditModeChanged, this, &VisibilityManager::initViewFlags);
connect(m_latteView, &Latte::View::absoluteGeometryChanged, this, [&]() {
if (m_mode == Types::AlwaysVisible && m_latteView->screen()) {
if (m_mode == Types::AlwaysVisible) {
updateStrutsBasedOnLayoutsAndActivities();
}
});
@ -235,9 +235,7 @@ void VisibilityManager::setMode(Latte::Types::Visibility mode)
});
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);