protocols: minor style improvements to new impls

This commit is contained in:
Vaxry 2024-04-21 19:29:45 +01:00
parent 75c87bde3c
commit 55f1f3fedf
7 changed files with 41 additions and 31 deletions

View file

@ -44,18 +44,21 @@ class CIdleInhibitProtocol : public IWaylandProtocol {
virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id);
void onManagerResourceDestroy(wl_resource* res);
void onCreateInhibitor(CZwpIdleInhibitManagerV1* pMgr, uint32_t id, wlr_surface* surface);
void removeInhibitor(CIdleInhibitorResource*);
struct {
CSignal newIdleInhibitor; // data: SP<CIdleInhibitor>
} events;
private:
void onManagerResourceDestroy(wl_resource* res);
void onCreateInhibitor(CZwpIdleInhibitManagerV1* pMgr, uint32_t id, wlr_surface* surface);
void removeInhibitor(CIdleInhibitorResource*);
//
std::vector<UP<CZwpIdleInhibitManagerV1>> m_vManagers;
std::vector<SP<CIdleInhibitorResource>> m_vInhibitors;
friend class CIdleInhibitorResource;
};
namespace PROTO {