diff options
Diffstat (limited to 'src/protocols/IdleInhibit.hpp')
| -rw-r--r-- | src/protocols/IdleInhibit.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/protocols/IdleInhibit.hpp b/src/protocols/IdleInhibit.hpp index 3283333f..3ea8f691 100644 --- a/src/protocols/IdleInhibit.hpp +++ b/src/protocols/IdleInhibit.hpp @@ -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 { |
