From 9e2b939024448d64df6af1f5d2ea5ceee078a539 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 26 Nov 2023 14:53:22 +0000 Subject: [PATCH] surface: avoid infinite pointer image resets fixes #3729, should also #3968 --- src/helpers/WLSurface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/WLSurface.cpp b/src/helpers/WLSurface.cpp index 256c89b8..3528a72d 100644 --- a/src/helpers/WLSurface.cpp +++ b/src/helpers/WLSurface.cpp @@ -65,7 +65,7 @@ void CWLSurface::destroy() { 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"); + g_pHyprRenderer->m_sLastCursorData.surf.reset(); m_pWLRSurface = nullptr;