From fb80cbe415835a7e0c64e2038d0fc56e8aba0ab4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 23 Sep 2023 01:21:59 +0100 Subject: input: properly track mouse focus on drag operations --- src/helpers/WLSurface.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/helpers/WLSurface.cpp') 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; -- cgit v1.2.3