diff options
| author | davc0n <dconti.dev@gmail.com> | 2025-05-04 00:13:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-04 00:13:29 +0200 |
| commit | adbae0f74d951e06c575bad3c81a944027dfe413 (patch) | |
| tree | 4ae313af18629596c7e98518c7c1d2c10bc260a3 /src/protocols/FocusGrab.hpp | |
| parent | 46ac115bd19ee3aff5c816033de0b1d55a74e33f (diff) | |
protocols: refactor class member vars (a-m) (#10265)
Diffstat (limited to 'src/protocols/FocusGrab.hpp')
| -rw-r--r-- | src/protocols/FocusGrab.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/protocols/FocusGrab.hpp b/src/protocols/FocusGrab.hpp index 1445a24c..6fb27b86 100644 --- a/src/protocols/FocusGrab.hpp +++ b/src/protocols/FocusGrab.hpp @@ -21,12 +21,12 @@ class CFocusGrabSurfaceState { PendingAddition, PendingRemoval, Comitted, - } state = PendingAddition; + } m_state = PendingAddition; private: struct { CHyprSignalListener destroy; - } listeners; + } m_listeners; }; class CFocusGrab { @@ -47,11 +47,11 @@ class CFocusGrab { void refocusKeyboard(); void commit(bool removeOnly = false); - SP<CHyprlandFocusGrabV1> resource; - std::unordered_map<WP<CWLSurfaceResource>, UP<CFocusGrabSurfaceState>> m_mSurfaces; - SP<CSeatGrab> grab; + SP<CHyprlandFocusGrabV1> m_resource; + std::unordered_map<WP<CWLSurfaceResource>, UP<CFocusGrabSurfaceState>> m_surfaces; + SP<CSeatGrab> m_grab; - bool m_bGrabActive = false; + bool m_grabActive = false; friend class CFocusGrabSurfaceState; }; @@ -67,8 +67,8 @@ class CFocusGrabProtocol : public IWaylandProtocol { void destroyGrab(CFocusGrab* grab); void onCreateGrab(CHyprlandFocusGrabManagerV1* pMgr, uint32_t id); - std::vector<UP<CHyprlandFocusGrabManagerV1>> m_vManagers; - std::vector<UP<CFocusGrab>> m_vGrabs; + std::vector<UP<CHyprlandFocusGrabManagerV1>> m_managers; + std::vector<UP<CFocusGrab>> m_grabs; friend class CFocusGrab; }; |
