From 2626f89ea6fe0df585df28052bf1fcca2c50fe8e Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 4 May 2025 19:21:36 +0200 Subject: protocols: refactor class member vars (n-t) (#10273) --- src/protocols/TextInputV1.hpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/protocols/TextInputV1.hpp') diff --git a/src/protocols/TextInputV1.hpp b/src/protocols/TextInputV1.hpp index d3b0d71b..5f74bf72 100644 --- a/src/protocols/TextInputV1.hpp +++ b/src/protocols/TextInputV1.hpp @@ -27,11 +27,10 @@ class CTextInputV1 { wl_client* client(); private: - SP resource; - WP self; + SP m_resource; - uint32_t serial = 0; - bool active = false; + uint32_t m_serial = 0; + bool m_active = false; struct { CSignal onCommit; @@ -39,22 +38,22 @@ class CTextInputV1 { CSignal disable; CSignal reset; CSignal destroy; - } events; + } m_events; struct SPendingSurr { bool isPending = false; std::string text = ""; uint32_t cursor = 0; uint32_t anchor = 0; - } pendingSurrounding; + } m_pendingSurrounding; struct SPendingCT { bool isPending = false; uint32_t hint = 0; uint32_t purpose = 0; - } pendingContentType; + } m_pendingContentType; - CBox cursorRectangle = {0, 0, 0, 0}; + CBox m_cursorRectangle = {0, 0, 0, 0}; friend class CTextInput; friend class CTextInputV1Protocol; @@ -70,11 +69,11 @@ class CTextInputV1Protocol : public IWaylandProtocol { struct { CSignal newTextInput; // WP - } events; + } m_events; private: - std::vector> m_vManagers; - std::vector> m_vClients; + std::vector> m_managers; + std::vector> m_clients; friend class CTextInputV1; }; -- cgit v1.2.3