From adbae0f74d951e06c575bad3c81a944027dfe413 Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 4 May 2025 00:13:29 +0200 Subject: protocols: refactor class member vars (a-m) (#10265) --- src/protocols/IdleInhibit.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/protocols/IdleInhibit.hpp') diff --git a/src/protocols/IdleInhibit.hpp b/src/protocols/IdleInhibit.hpp index 2e024a7a..791d83f9 100644 --- a/src/protocols/IdleInhibit.hpp +++ b/src/protocols/IdleInhibit.hpp @@ -14,10 +14,10 @@ class CIdleInhibitor { struct { CHyprSignalListener destroy; - } listeners; + } m_listeners; - WP resource; - WP surface; + WP m_resource; + WP m_surface; }; class CIdleInhibitorResource { @@ -25,20 +25,20 @@ class CIdleInhibitorResource { CIdleInhibitorResource(SP resource_, SP surface_); ~CIdleInhibitorResource(); - SP inhibitor; + SP m_inhibitor; struct { CSignal destroy; - } events; + } m_events; private: - SP resource; - WP surface; - bool destroySent = false; + SP m_resource; + WP m_surface; + bool m_destroySent = false; struct { CHyprSignalListener destroySurface; - } listeners; + } m_listeners; }; class CIdleInhibitProtocol : public IWaylandProtocol { @@ -49,7 +49,7 @@ class CIdleInhibitProtocol : public IWaylandProtocol { struct { CSignal newIdleInhibitor; // data: SP - } events; + } m_events; private: void onManagerResourceDestroy(wl_resource* res); @@ -58,8 +58,8 @@ class CIdleInhibitProtocol : public IWaylandProtocol { void removeInhibitor(CIdleInhibitorResource*); // - std::vector> m_vManagers; - std::vector> m_vInhibitors; + std::vector> m_managers; + std::vector> m_inhibitors; friend class CIdleInhibitorResource; }; -- cgit v1.2.3