1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00

update struts when needed after their removal

--improve also when struts are applied under a
Multiple Mode and Multiple Activities
This commit is contained in:
Michail Vourlakos 2019-05-03 02:39:21 +03:00
parent be36b7cfaf
commit d945c89713

View File

@ -172,7 +172,7 @@ void VisibilityManager::setMode(Latte::Types::Visibility mode)
}
m_connections[base] = connect(m_corona->activitiesConsumer(), &KActivities::Consumer::currentActivityChanged, this, [&]() {
m_connections[base] = connect(m_corona->layoutManager(), &LayoutManager::currentLayoutNameChanged, this, [&]() {
if (m_corona && m_corona->layoutManager()->memoryUsage() == Types::MultipleLayouts) {
updateStrutsBasedOnLayoutsAndActivities();
}
@ -254,6 +254,7 @@ void VisibilityManager::updateStrutsBasedOnLayoutsAndActivities()
m_wm->setViewStruts(*m_latteView, m_publishedStruts, m_latteView->location());
}
} else {
m_publishedStruts = QRect();
m_wm->removeViewStruts(*m_latteView);
}
}