summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-04-16 15:17:50 +0100
committervaxerski <vaxry@vaxry.net>2024-04-16 15:17:54 +0100
commit32555e98ddb2f782359b9c550dd4eceb17c3de79 (patch)
tree8feb3187e4cab1506f7a62af9c9275ce05d2515b /src/desktop/Window.cpp
parent79a139c9495568f69dd995bce1ca579247a98a17 (diff)
window: remove input ref on unmap
ref #5605
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp2
1 files changed, 2 insertions, 0 deletions
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;