From d90149657f71f2ca9ba5e686fb9b754d0c08a26d Mon Sep 17 00:00:00 2001 From: Gwilherm Folliot Date: Thu, 9 Jan 2025 14:03:53 +0100 Subject: [PATCH] input-capture: force cursor hiding --- src/protocols/InputCapture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/protocols/InputCapture.cpp b/src/protocols/InputCapture.cpp index c91d13f7..9f91bb82 100644 --- a/src/protocols/InputCapture.cpp +++ b/src/protocols/InputCapture.cpp @@ -1,6 +1,7 @@ #include "InputCapture.hpp" #include "managers/SeatManager.hpp" +#include "render/Renderer.hpp" #include CInputCaptureProtocol::CInputCaptureProtocol(const wl_interface* iface, const int& ver, const std::string& name) : IWaylandProtocol(iface, ver, name) { @@ -15,10 +16,12 @@ void CInputCaptureProtocol::bindManager(wl_client* client, void* data, uint32_t RESOURCE->setCapture([this](CHyprlandInputCaptureManagerV1* p) { Debug::log(LOG, "[input-capture] Input captured"); active = true; + g_pHyprRenderer->ensureCursorRenderingMode(); }); RESOURCE->setRelease([this](CHyprlandInputCaptureManagerV1* p) { Debug::log(LOG, "[input-capture] Input released"); active = false; + g_pHyprRenderer->ensureCursorRenderingMode(); }); sendKeymap(g_pSeatManager->keyboard.lock(), RESOURCE);