surface: avoid infinite pointer image resets

fixes #3729, should also #3968
This commit is contained in:
Vaxry 2023-11-26 14:53:22 +00:00
parent cd96ceecc5
commit 9e2b939024

View file

@ -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;