summaryrefslogtreecommitdiff
path: root/src/protocols/IdleInhibit.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-21 19:29:45 +0100
committerVaxry <vaxry@vaxry.net>2024-04-21 19:29:45 +0100
commit55f1f3fedfc6dc5da7f304bdfc8296a0a056f781 (patch)
treee82c7dcbf82cc50427430d465cb919cea4a7752f /src/protocols/IdleInhibit.hpp
parent75c87bde3cfa38105a8c882c790e235503dc46bd (diff)
protocols: minor style improvements to new impls
Diffstat (limited to 'src/protocols/IdleInhibit.hpp')
-rw-r--r--src/protocols/IdleInhibit.hpp13
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 {