protocols: implement pointer-warp-v1 (#11469)

This commit is contained in:
Ikalco 2025-08-29 15:16:40 -05:00 committed by GitHub
parent 05a1c0aa73
commit ea42041f93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 699 additions and 5 deletions

View file

@ -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;
};