summaryrefslogtreecommitdiff
path: root/src/protocols/PointerWarp.hpp
diff options
context:
space:
mode:
authorIkalco <73481042+ikalco@users.noreply.github.com>2025-08-29 15:16:40 -0500
committerGitHub <noreply@github.com>2025-08-29 22:16:40 +0200
commitea42041f936d5810c5cfa45d6bece12dde2fd9b6 (patch)
treed600f5a6a4fcdee8f3e24b666d1ea57ccc88cdd6 /src/protocols/PointerWarp.hpp
parent05a1c0aa7395d19213e587c83089ecbd7b92085c (diff)
protocols: implement pointer-warp-v1 (#11469)
Diffstat (limited to 'src/protocols/PointerWarp.hpp')
-rw-r--r--src/protocols/PointerWarp.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/protocols/PointerWarp.hpp b/src/protocols/PointerWarp.hpp
new file mode 100644
index 00000000..d1ce0062
--- /dev/null
+++ b/src/protocols/PointerWarp.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "WaylandProtocol.hpp"
+#include "pointer-warp-v1.hpp"
+
+class CPointerWarpProtocol : public IWaylandProtocol {
+ public:
+ CPointerWarpProtocol(const wl_interface* iface, const int& ver, const std::string& name);
+
+ virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id);
+
+ private:
+ void destroyManager(CWpPointerWarpV1* manager);
+
+ //
+ std::vector<UP<CWpPointerWarpV1>> m_managers;
+};
+
+namespace PROTO {
+ inline UP<CPointerWarpProtocol> pointerWarp;
+};