summaryrefslogtreecommitdiff
path: root/src/helpers/WLSurface.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-26 14:53:22 +0000
committerVaxry <vaxry@vaxry.net>2023-11-26 14:53:22 +0000
commit9e2b939024448d64df6af1f5d2ea5ceee078a539 (patch)
tree23bc8b9bd20724e1f7d83bf9c45443e71c3ffb5b /src/helpers/WLSurface.cpp
parentcd96ceecc551c25631783499bd92c6662c5d3616 (diff)
surface: avoid infinite pointer image resets
fixes #3729, should also #3968
Diffstat (limited to 'src/helpers/WLSurface.cpp')
-rw-r--r--src/helpers/WLSurface.cpp2
1 files changed, 1 insertions, 1 deletions
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;