//update the id of displaced desktops
for (uint i = actualNumber; i < (uint)m_desktops.count(); ++i) {
m_desktops[i]->setX11DesktopNumber(i + 1);
if (m_rootInfo) {
m_rootInfo->setDesktopName(i + 1, m_desktops[i]->name().toUtf8().data());
}
}
Assumes that the new virtual desktop has been already inserted at
`actualDesktop - 1`, but because that's not the case, several virtual
desktops can start sharing a single id.
That in its turn breaks some assumptions in removeVirtualDesktop, which
can lead to a crash later on.
BUG: 403312