window: fix invalid last workspace id

ref #5432
This commit is contained in:
Vaxry 2024-04-04 22:49:15 +01:00
parent ec2cc79c65
commit 1454c6213e

View file

@ -450,7 +450,7 @@ void CWindow::onUnmap() {
if (g_pCompositor->m_pLastWindow == this)
g_pCompositor->m_pLastWindow = nullptr;
m_iLastWorkspace = onSpecialWorkspace();
m_iLastWorkspace = m_pWorkspace->m_iID;
m_vRealPosition.setCallbackOnEnd(unregisterVar);
m_vRealSize.setCallbackOnEnd(unregisterVar);