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:
parent
e98ce9e0c8
commit
84a5eecf79
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user