summaryrefslogtreecommitdiff
path: root/src/helpers/WLSurface.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-10-29 18:09:05 +0000
committerVaxry <vaxry@vaxry.net>2023-10-29 18:09:05 +0000
commit7a5234a0cca2508b7a5ede1fc60dc3ae8b72a51c (patch)
tree581626c545765a0f797a4f4681100facb0826b0f /src/helpers/WLSurface.cpp
parentaf9440152e19cee74b675e53087e032b9ccb5459 (diff)
input: better cursor image infrastructure
Improves handling of cursor images/surfaces Fixes an issue with decos and cursors Fixes #3471
Diffstat (limited to 'src/helpers/WLSurface.cpp')
-rw-r--r--src/helpers/WLSurface.cpp2
1 files changed, 2 insertions, 0 deletions
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;