diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index cf25d477..926007d3 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -18,6 +18,7 @@ #include "../protocols/core/Compositor.hpp" #include "../protocols/DRMSyncobj.hpp" #include "../protocols/LinuxDMABUF.hpp" +#include "../protocols/InputCapture.hpp" #include "../helpers/sync/SyncTimeline.hpp" #include "pass/TexPassElement.hpp" #include "pass/ClearPassElement.hpp" @@ -1963,7 +1964,9 @@ void CHyprRenderer::ensureCursorRenderingMode() { if (*PCURSORTIMEOUT > 0) m_sCursorHiddenConditions.hiddenOnTimeout = *PCURSORTIMEOUT < g_pInputManager->m_tmrLastCursorMovement.getSeconds(); - const bool HIDE = m_sCursorHiddenConditions.hiddenOnTimeout || m_sCursorHiddenConditions.hiddenOnTouch || m_sCursorHiddenConditions.hiddenOnKeyboard; + + const bool HIDE = m_sCursorHiddenConditions.hiddenOnTimeout || m_sCursorHiddenConditions.hiddenOnTouch || m_sCursorHiddenConditions.hiddenOnKeyboard || + PROTO::inputCapture->isCaptured(); if (HIDE == m_bCursorHidden) return;