window: remove input ref on unmap

ref #5605
This commit is contained in:
Vaxry 2024-04-16 15:17:50 +01:00
parent 79a139c949
commit 32555e98dd

View file

@ -453,6 +453,8 @@ void CWindow::onUnmap() {
if (g_pCompositor->m_pLastWindow == this) if (g_pCompositor->m_pLastWindow == this)
g_pCompositor->m_pLastWindow = nullptr; g_pCompositor->m_pLastWindow = nullptr;
if (g_pInputManager->currentlyDraggedWindow == this)
g_pInputManager->currentlyDraggedWindow = nullptr;
m_iLastWorkspace = m_pWorkspace->m_iID; m_iLastWorkspace = m_pWorkspace->m_iID;