Skip to content

Commit

Permalink
input-capture: hide cursor when the input is captured
Browse files Browse the repository at this point in the history
  • Loading branch information
3l0w committed Jan 9, 2025
1 parent 0a1f95b commit a94d9de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/render/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a94d9de

Please sign in to comment.