diff options
| author | davc0n <dconti.dev@gmail.com> | 2025-05-04 19:21:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-04 19:21:36 +0200 |
| commit | 2626f89ea6fe0df585df28052bf1fcca2c50fe8e (patch) | |
| tree | 6dd030f42e065e1a927ab907222e1efaf21b0bc1 /src/protocols/PointerConstraints.hpp | |
| parent | adbae0f74d951e06c575bad3c81a944027dfe413 (diff) | |
protocols: refactor class member vars (n-t) (#10273)
Diffstat (limited to 'src/protocols/PointerConstraints.hpp')
| -rw-r--r-- | src/protocols/PointerConstraints.hpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/protocols/PointerConstraints.hpp b/src/protocols/PointerConstraints.hpp index 4d2b4b38..1691b7c0 100644 --- a/src/protocols/PointerConstraints.hpp +++ b/src/protocols/PointerConstraints.hpp @@ -31,26 +31,26 @@ class CPointerConstraint { Vector2D logicPositionHint(); private: - SP<CZwpLockedPointerV1> resourceL; - SP<CZwpConfinedPointerV1> resourceC; + SP<CZwpLockedPointerV1> m_resourceLocked; + SP<CZwpConfinedPointerV1> m_resourceConfined; - WP<CWLSurface> pHLSurface; + WP<CWLSurface> m_hlSurface; - CRegion region; - bool hintSet = false; - Vector2D positionHint = {-1, -1}; - Vector2D cursorPosOnActivate = {-1, -1}; - bool active = false; - bool locked = false; - bool dead = false; - zwpPointerConstraintsV1Lifetime lifetime = ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT; + CRegion m_region; + bool m_hintSet = false; + Vector2D m_positionHint = {-1, -1}; + Vector2D m_cursorPosOnActivate = {-1, -1}; + bool m_active = false; + bool m_locked = false; + bool m_dead = false; + zwpPointerConstraintsV1Lifetime m_lifetime = ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT; void sharedConstructions(); void onSetRegion(wl_resource* region); struct { CHyprSignalListener destroySurface; - } listeners; + } m_listeners; }; class CPointerConstraintsProtocol : public IWaylandProtocol { @@ -67,8 +67,8 @@ class CPointerConstraintsProtocol : public IWaylandProtocol { void onNewConstraint(SP<CPointerConstraint> constraint, CZwpPointerConstraintsV1* pMgr); // - std::vector<UP<CZwpPointerConstraintsV1>> m_vManagers; - std::vector<SP<CPointerConstraint>> m_vConstraints; + std::vector<UP<CZwpPointerConstraintsV1>> m_managers; + std::vector<SP<CPointerConstraint>> m_constraints; friend class CPointerConstraint; }; |
