summaryrefslogtreecommitdiff
path: root/src/helpers/WLSurface.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-23 01:21:59 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-23 01:28:45 +0100
commitfb80cbe415835a7e0c64e2038d0fc56e8aba0ab4 (patch)
tree15058bb43121adf14735c4e551064716de92a8a8 /src/helpers/WLSurface.cpp
parent1b48642fd15c433c53876f1b933dcd46265caf8f (diff)
input: properly track mouse focus on drag operations
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;