mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 04:31:57 -07:00
surface: avoid infinite pointer image resets
fixes #3729, should also #3968
This commit is contained in:
@@ -65,7 +65,7 @@ void CWLSurface::destroy() {
|
|||||||
if (g_pInputManager->m_pLastMouseSurface == m_pWLRSurface)
|
if (g_pInputManager->m_pLastMouseSurface == m_pWLRSurface)
|
||||||
g_pInputManager->m_pLastMouseSurface = nullptr;
|
g_pInputManager->m_pLastMouseSurface = nullptr;
|
||||||
if (g_pHyprRenderer->m_sLastCursorData.surf == m_pWLRSurface)
|
if (g_pHyprRenderer->m_sLastCursorData.surf == m_pWLRSurface)
|
||||||
g_pInputManager->setCursorImageOverride("left_ptr");
|
g_pHyprRenderer->m_sLastCursorData.surf.reset();
|
||||||
|
|
||||||
m_pWLRSurface = nullptr;
|
m_pWLRSurface = nullptr;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user