From 7a5234a0cca2508b7a5ede1fc60dc3ae8b72a51c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 29 Oct 2023 18:09:05 +0000 Subject: input: better cursor image infrastructure Improves handling of cursor images/surfaces Fixes an issue with decos and cursors Fixes #3471 --- 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 3d3800cb..ffd764a1 100644 --- a/src/helpers/WLSurface.cpp +++ b/src/helpers/WLSurface.cpp @@ -64,6 +64,8 @@ void CWLSurface::destroy() { g_pCompositor->m_pLastFocus = nullptr; if (g_pInputManager->m_pLastMouseSurface == m_pWLRSurface) g_pInputManager->m_pLastMouseSurface = nullptr; + if (g_pHyprRenderer->m_sLastCursorData.surf == m_pWLRSurface) + g_pInputManager->setCursorImageOverride("left_ptr"); m_pWLRSurface = nullptr; -- cgit v1.2.3