protocols: implement pointer-warp-v1 (#11469)
This commit is contained in:
parent
05a1c0aa73
commit
ea42041f93
17 changed files with 699 additions and 5 deletions
21
src/protocols/PointerWarp.hpp
Normal file
21
src/protocols/PointerWarp.hpp
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue