protocols: refactor class member vars (n-t) (#10273)

This commit is contained in:
davc0n 2025-05-04 19:21:36 +02:00 committed by GitHub
parent adbae0f74d
commit 2626f89ea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1507 additions and 1511 deletions

View file

@ -32,7 +32,7 @@ class CTextInputV3 {
CSignal disable;
CSignal reset;
CSignal destroy;
} events;
} m_events;
struct SState {
struct {
@ -63,12 +63,14 @@ class CTextInputV3 {
void reset();
};
SState pending, current;
SState m_pending;
SState m_current;
private:
SP<CZwpTextInputV3> resource;
SP<CZwpTextInputV3> m_resource;
int serial = 0;
int m_serial = 0;
};
class CTextInputV3Protocol : public IWaylandProtocol {
@ -79,7 +81,7 @@ class CTextInputV3Protocol : public IWaylandProtocol {
struct {
CSignal newTextInput; // WP<CTextInputV3>
} events;
} m_events;
private:
void onManagerResourceDestroy(wl_resource* res);
@ -87,8 +89,8 @@ class CTextInputV3Protocol : public IWaylandProtocol {
void onGetTextInput(CZwpTextInputManagerV3* pMgr, uint32_t id, wl_resource* seat);
//
std::vector<UP<CZwpTextInputManagerV3>> m_vManagers;
std::vector<SP<CTextInputV3>> m_vTextInputs;
std::vector<UP<CZwpTextInputManagerV3>> m_managers;
std::vector<SP<CTextInputV3>> m_textInputs;
friend class CTextInputV3;
};