summaryrefslogtreecommitdiff
path: root/src/helpers/WLSurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/WLSurface.cpp')
-rw-r--r--src/helpers/WLSurface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helpers/WLSurface.cpp b/src/helpers/WLSurface.cpp
index 8057925b..8524c9a5 100644
--- a/src/helpers/WLSurface.cpp
+++ b/src/helpers/WLSurface.cpp
@@ -36,6 +36,8 @@ void CWLSurface::destroy() {
if (g_pCompositor->m_pLastFocus == m_pWLRSurface)
g_pCompositor->m_pLastFocus = nullptr;
+ if (g_pInputManager->m_pLastMouseSurface == m_pWLRSurface)
+ g_pInputManager->m_pLastMouseSurface = nullptr;
m_pWLRSurface = nullptr;