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
1 changed files with 2 additions and 0 deletions

View File

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