mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-11 23:49:49 +01:00
input-capture: force cursor hiding
This commit is contained in:
parent
f0a29c2ac0
commit
d90149657f
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "InputCapture.hpp"
|
||||
|
||||
#include "managers/SeatManager.hpp"
|
||||
#include "render/Renderer.hpp"
|
||||
#include <fcntl.h>
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue