Stop including deleted windows in Workspace::forEachToplevel

This commit is contained in:
Vlad Zahorodnii 2023-03-07 22:19:09 +02:00
parent 7f619e7770
commit 497ba4a62a

View file

@ -2001,7 +2001,6 @@ Window *Workspace::findToplevel(const QUuid &internalId) const
void Workspace::forEachToplevel(std::function<void(Window *)> func) void Workspace::forEachToplevel(std::function<void(Window *)> func)
{ {
std::for_each(m_allClients.constBegin(), m_allClients.constEnd(), func); std::for_each(m_allClients.constBegin(), m_allClients.constEnd(), func);
std::for_each(deleted.constBegin(), deleted.constEnd(), func);
std::for_each(m_unmanaged.constBegin(), m_unmanaged.constEnd(), func); std::for_each(m_unmanaged.constBegin(), m_unmanaged.constEnd(), func);
std::for_each(m_internalWindows.constBegin(), m_internalWindows.constEnd(), func); std::for_each(m_internalWindows.constBegin(), m_internalWindows.constEnd(), func);
} }