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

@ -15,15 +15,15 @@ class COutputPower {
bool good();
private:
SP<CZwlrOutputPowerV1> resource;
SP<CZwlrOutputPowerV1> m_resource;
PHLMONITORREF pMonitor;
PHLMONITORREF m_monitor;
struct {
CHyprSignalListener monitorDestroy;
CHyprSignalListener monitorState;
CHyprSignalListener monitorDpms;
} listeners;
} m_listeners;
};
class COutputPowerProtocol : public IWaylandProtocol {
@ -38,8 +38,8 @@ class COutputPowerProtocol : public IWaylandProtocol {
void onGetOutputPower(CZwlrOutputPowerManagerV1* pMgr, uint32_t id, wl_resource* output);
//
std::vector<UP<CZwlrOutputPowerManagerV1>> m_vManagers;
std::vector<UP<COutputPower>> m_vOutputPowers;
std::vector<UP<CZwlrOutputPowerManagerV1>> m_managers;
std::vector<UP<COutputPower>> m_outputPowers;
friend class COutputPower;
};