mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-12 06:29: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 "InputCapture.hpp"
|
||||||
|
|
||||||
#include "managers/SeatManager.hpp"
|
#include "managers/SeatManager.hpp"
|
||||||
|
#include "render/Renderer.hpp"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
CInputCaptureProtocol::CInputCaptureProtocol(const wl_interface* iface, const int& ver, const std::string& name) : IWaylandProtocol(iface, ver, name) {
|
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) {
|
RESOURCE->setCapture([this](CHyprlandInputCaptureManagerV1* p) {
|
||||||
Debug::log(LOG, "[input-capture] Input captured");
|
Debug::log(LOG, "[input-capture] Input captured");
|
||||||
active = true;
|
active = true;
|
||||||
|
g_pHyprRenderer->ensureCursorRenderingMode();
|
||||||
});
|
});
|
||||||
RESOURCE->setRelease([this](CHyprlandInputCaptureManagerV1* p) {
|
RESOURCE->setRelease([this](CHyprlandInputCaptureManagerV1* p) {
|
||||||
Debug::log(LOG, "[input-capture] Input released");
|
Debug::log(LOG, "[input-capture] Input released");
|
||||||
active = false;
|
active = false;
|
||||||
|
g_pHyprRenderer->ensureCursorRenderingMode();
|
||||||
});
|
});
|
||||||
|
|
||||||
sendKeymap(g_pSeatManager->keyboard.lock(), RESOURCE);
|
sendKeymap(g_pSeatManager->keyboard.lock(), RESOURCE);
|
||||||
|
|
Loading…
Reference in a new issue