Drop irrelevant Deleted cleanup in Workspace

Deleted windows are no longer destroyed using deleteLater(). They will
be destroyed immediately as Workspace goes through the window list
because the effects will be unloaded by that time.
This commit is contained in:
Vlad Zahorodnii 2023-03-23 20:06:23 +02:00
parent 9c22df0769
commit 09cc312f31

View file

@ -483,12 +483,6 @@ Workspace::~Workspace()
window->destroyWindow(); window->destroyWindow();
} }
for (auto it = deleted.begin(); it != deleted.end();) {
Q_EMIT deletedRemoved(*it);
(*it)->finishCompositing();
it = deleted.erase(it);
}
m_rulebook.reset(); m_rulebook.reset();
kwinApp()->config()->sync(); kwinApp()->config()->sync();