summaryrefslogtreecommitdiff
path: root/src/protocols/PointerWarp.hpp
diff options
context:
space:
mode:
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;
+};