summaryrefslogtreecommitdiff
path: root/src/protocols/IdleInhibit.hpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-04 00:13:29 +0200
committerGitHub <noreply@github.com>2025-05-04 00:13:29 +0200
commitadbae0f74d951e06c575bad3c81a944027dfe413 (patch)
tree4ae313af18629596c7e98518c7c1d2c10bc260a3 /src/protocols/IdleInhibit.hpp
parent46ac115bd19ee3aff5c816033de0b1d55a74e33f (diff)
protocols: refactor class member vars (a-m) (#10265)
Diffstat (limited to 'src/protocols/IdleInhibit.hpp')
-rw-r--r--src/protocols/IdleInhibit.hpp24
1 files changed, 12 insertions, 12 deletions
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<CIdleInhibitorResource> resource;
- WP<CWLSurfaceResource> surface;
+ WP<CIdleInhibitorResource> m_resource;
+ WP<CWLSurfaceResource> m_surface;
};
class CIdleInhibitorResource {
@@ -25,20 +25,20 @@ class CIdleInhibitorResource {
CIdleInhibitorResource(SP<CZwpIdleInhibitorV1> resource_, SP<CWLSurfaceResource> surface_);
~CIdleInhibitorResource();
- SP<CIdleInhibitor> inhibitor;
+ SP<CIdleInhibitor> m_inhibitor;
struct {
CSignal destroy;
- } events;
+ } m_events;
private:
- SP<CZwpIdleInhibitorV1> resource;
- WP<CWLSurfaceResource> surface;
- bool destroySent = false;
+ SP<CZwpIdleInhibitorV1> m_resource;
+ WP<CWLSurfaceResource> 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<CIdleInhibitor>
- } events;
+ } m_events;
private:
void onManagerResourceDestroy(wl_resource* res);
@@ -58,8 +58,8 @@ class CIdleInhibitProtocol : public IWaylandProtocol {
void removeInhibitor(CIdleInhibitorResource*);
//
- std::vector<UP<CZwpIdleInhibitManagerV1>> m_vManagers;
- std::vector<SP<CIdleInhibitorResource>> m_vInhibitors;
+ std::vector<UP<CZwpIdleInhibitManagerV1>> m_managers;
+ std::vector<SP<CIdleInhibitorResource>> m_inhibitors;
friend class CIdleInhibitorResource;
};