#pragma once #include #include #include #include "WaylandProtocol.hpp" #include "kde-server-decoration.hpp" class CServerDecorationKDE { public: CServerDecorationKDE(SP resource_, wlr_surface* surf); bool good(); private: SP resource; }; class CServerDecorationKDEProtocol : public IWaylandProtocol { public: CServerDecorationKDEProtocol(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 onManagerResourceDestroy(wl_resource* res); void destroyResource(CServerDecorationKDE* deco); void createDecoration(COrgKdeKwinServerDecorationManager* pMgr, uint32_t id, wl_resource* surf); // std::vector> m_vManagers; std::vector> m_vDecos; friend class CServerDecorationKDE; }; namespace PROTO { inline UP serverDecorationKDE; };