diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index b36b7dbf..9aae3e44 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -483,11 +483,6 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) { } void CInputManager::processMouseRequest(wlr_seat_pointer_request_set_cursor_event* e) { - if (!e->surface) - g_pHyprRenderer->m_bWindowRequestedCursorHide = true; - else - g_pHyprRenderer->m_bWindowRequestedCursorHide = false; - if (!cursorImageUnlocked()) return; diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index ddae866b..6a4a0460 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -2165,7 +2165,7 @@ void CHyprRenderer::setCursorHidden(bool hide) { } bool CHyprRenderer::shouldRenderCursor() { - return !m_bCursorHidden && !m_bWindowRequestedCursorHide && m_bCursorHasSurface; + return !m_bCursorHidden && m_bCursorHasSurface; } std::tuple CHyprRenderer::getRenderTimes(CMonitor* pMonitor) { diff --git a/src/render/Renderer.hpp b/src/render/Renderer.hpp index d0540a2f..e236c54a 100644 --- a/src/render/Renderer.hpp +++ b/src/render/Renderer.hpp @@ -76,7 +76,6 @@ class CHyprRenderer { bool beginRender(CMonitor* pMonitor, CRegion& damage, eRenderMode mode = RENDER_MODE_NORMAL, wlr_buffer* buffer = nullptr, CFramebuffer* fb = nullptr); void endRender(); - bool m_bWindowRequestedCursorHide = false; bool m_bBlockSurfaceFeedback = false; bool m_bRenderingSnapshot = false; CWindow* m_pLastScanout = nullptr;