mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 01:33:50 +03:00
fixes for offline properties updates
This commit is contained in:
parent
050b454b5a
commit
02ff6cc808
@ -1379,6 +1379,11 @@ void GenericLayout::syncLatteViewsToScreens(Layout::ViewsMap *occupiedMap)
|
||||
m_pendingContainmentUpdates.remove(pendingid);
|
||||
}
|
||||
|
||||
if (m_pendingContainmentUpdates.rowCount() > 0) {
|
||||
qDebug () << " Pending View updates still valid : ";
|
||||
m_pendingContainmentUpdates.print();
|
||||
}
|
||||
|
||||
//! use valid views map based on active screens
|
||||
Layout::ViewsMap viewsMap = validViewsMap(occupiedMap);
|
||||
|
||||
@ -1586,7 +1591,7 @@ void GenericLayout::updateView(const Latte::Data::View &viewData)
|
||||
//! active -> inactiveinmemory [viewscenario]
|
||||
auto containment = containmentForId(viewData.id.toUInt());
|
||||
if (containment) {
|
||||
Layouts::Storage::self()->updateView(containment->config(), viewData);
|
||||
Layouts::Storage::self()->updateView(this, viewData);
|
||||
|
||||
//! by using pendingContainmentUpdates we make sure that when containment->screen() will be
|
||||
//! called though reactToScreenChange() the proper screen will be returned
|
||||
|
@ -1317,6 +1317,8 @@ void Storage::updateView(const Layout::GenericLayout *layout, const Data::View &
|
||||
//! active view but is not present in active screens;
|
||||
auto containment = layout->containmentForId(viewData.id.toUInt());
|
||||
if (containment) {
|
||||
//! update containment
|
||||
containment->setLocation(viewData.edge);
|
||||
updateView(containment->config(), viewData);
|
||||
}
|
||||
} else {
|
||||
|
@ -1661,6 +1661,7 @@ void View::restoreConfig()
|
||||
|
||||
//! Send changed signals at the end in order to be sure that saveConfig
|
||||
//! wont rewrite default/invalid values
|
||||
emit alignmentChanged();
|
||||
emit onPrimaryChanged();
|
||||
emit byPassWMChanged();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user