do not delay exit at all cases

--in the past a delay was needed in order for
docks panels to slide out nicely, this is not
needed any more because kwin takes responsibility
for this.
work/spdx
Michail Vourlakos 4 years ago
parent 00a3d15478
commit 447f0e549c

@ -168,21 +168,6 @@ Corona::~Corona()
m_layoutsManager->synchronizer()->hideAllViews(); m_layoutsManager->synchronizer()->hideAllViews();
m_viewSettingsFactory->deleteLater(); m_viewSettingsFactory->deleteLater();
//! Don't delay the destruction under wayland in any case
//! because it creates a crash with kwin effects
//! https://bugs.kde.org/show_bug.cgi?id=392890
if (!KWindowSystem::isPlatformWayland()) {
QTimer::singleShot(400, [this]() {
m_quitTimedEnded = true;
});
while (!m_quitTimedEnded) {
QGuiApplication::processEvents(QEventLoop::AllEvents, 50);
}
}
//! END: slide-out views when closing
m_viewsScreenSyncTimer.stop(); m_viewsScreenSyncTimer.stop();
if (m_layoutsManager->memoryUsage() == MemoryUsage::SingleLayout) { if (m_layoutsManager->memoryUsage() == MemoryUsage::SingleLayout) {
@ -190,8 +175,8 @@ Corona::~Corona()
} }
qDebug() << "Latte Corona - unload: containments ..."; qDebug() << "Latte Corona - unload: containments ...";
m_layoutsManager->unload(); m_layoutsManager->unload();
m_plasmaGeometries->deleteLater(); m_plasmaGeometries->deleteLater();
m_wm->deleteLater(); m_wm->deleteLater();
m_dialogShadows->deleteLater(); m_dialogShadows->deleteLater();

@ -319,6 +319,7 @@ void Manager::clearUnloadedContainmentsFromLinkedFile(QStringList containmentsId
qDebug() << "unloads ::: " << conId; qDebug() << "unloads ::: " << conId;
KConfigGroup containment = containments.group(conId); KConfigGroup containment = containments.group(conId);
containment.deleteGroup(); containment.deleteGroup();
containment.sync();
} }
containments.sync(); containments.sync();

@ -559,8 +559,9 @@ void Storage::syncToLayoutFile(const Layout::GenericLayout *layout, bool removeL
if (!removeLayoutId) { if (!removeLayoutId) {
newGroup.writeEntry("layoutId", ""); newGroup.writeEntry("layoutId", "");
newGroup.sync();
} }
newGroup.sync();
} }
oldContainments.sync(); oldContainments.sync();

Loading…
Cancel
Save