diff options
author | vaxerski <[email protected]> | 2023-09-23 01:21:59 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-23 01:28:45 +0100 |
commit | fb80cbe415835a7e0c64e2038d0fc56e8aba0ab4 (patch) | |
tree | 15058bb43121adf14735c4e551064716de92a8a8 /src/helpers | |
parent | 1b48642fd15c433c53876f1b933dcd46265caf8f (diff) | |
download | Hyprland-fb80cbe415835a7e0c64e2038d0fc56e8aba0ab4.tar.gz Hyprland-fb80cbe415835a7e0c64e2038d0fc56e8aba0ab4.zip |
input: properly track mouse focus on drag operations
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/WLSurface.cpp | 2 |
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; |