From 32555e98ddb2f782359b9c550dd4eceb17c3de79 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 16 Apr 2024 15:17:50 +0100 Subject: [PATCH] window: remove input ref on unmap ref #5605 --- src/desktop/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 4318dbbc..b81cb1a4 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -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;