protocols: refactor class member vars (core) (#10259)

This commit is contained in:
davc0n 2025-05-03 16:02:49 +02:00 committed by GitHub
parent 0c736217a7
commit d9cad5e1b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 1160 additions and 1158 deletions

View file

@ -19,13 +19,13 @@ class CWLOutputResource {
SP<CWlOutput> getResource();
void updateState();
PHLMONITORREF monitor;
WP<CWLOutputProtocol> owner;
WP<CWLOutputResource> self;
PHLMONITORREF m_monitor;
WP<CWLOutputProtocol> m_owner;
WP<CWLOutputResource> m_self;
private:
SP<CWlOutput> resource;
wl_client* pClient = nullptr;
SP<CWlOutput> m_resource;
wl_client* m_client = nullptr;
friend class CWLOutputProtocol;
};
@ -39,8 +39,8 @@ class CWLOutputProtocol : public IWaylandProtocol {
SP<CWLOutputResource> outputResourceFrom(wl_client* client);
void sendDone();
PHLMONITORREF monitor;
WP<CWLOutputProtocol> self;
PHLMONITORREF m_monitor;
WP<CWLOutputProtocol> m_self;
// will mark the protocol for removal, will be removed when no. of bound outputs is 0 (or when overwritten by a new global)
void remove();
@ -50,13 +50,13 @@ class CWLOutputProtocol : public IWaylandProtocol {
void destroyResource(CWLOutputResource* resource);
//
std::vector<SP<CWLOutputResource>> m_vOutputs;
bool defunct = false;
std::string szName = "";
std::vector<SP<CWLOutputResource>> m_outputs;
bool m_defunct = false;
std::string m_name = "";
struct {
CHyprSignalListener modeChanged;
} listeners;
} m_listeners;
friend class CWLOutputResource;
};