parent
ce3ba798df
commit
f044e4c951
66 changed files with 424 additions and 446 deletions
|
|
@ -56,7 +56,7 @@ class COutputManager {
|
|||
COutputManager(SP<CZwlrOutputManagerV1> resource_);
|
||||
|
||||
bool good();
|
||||
void ensureMonitorSent(CMonitor* pMonitor);
|
||||
void ensureMonitorSent(PHLMONITOR pMonitor);
|
||||
void sendDone();
|
||||
|
||||
// holds the states for this manager.
|
||||
|
|
@ -70,7 +70,7 @@ class COutputManager {
|
|||
|
||||
std::vector<WP<COutputHead>> heads;
|
||||
|
||||
void makeAndSendNewHead(CMonitor* pMonitor);
|
||||
void makeAndSendNewHead(PHLMONITOR pMonitor);
|
||||
friend class COutputManagementProtocol;
|
||||
};
|
||||
|
||||
|
|
@ -92,16 +92,16 @@ class COutputMode {
|
|||
|
||||
class COutputHead {
|
||||
public:
|
||||
COutputHead(SP<CZwlrOutputHeadV1> resource_, CMonitor* pMonitor_);
|
||||
COutputHead(SP<CZwlrOutputHeadV1> resource_, PHLMONITOR pMonitor_);
|
||||
|
||||
bool good();
|
||||
void sendAllData(); // this has to be separate as we need to send the head first, then set the data
|
||||
void updateMode();
|
||||
CMonitor* monitor();
|
||||
bool good();
|
||||
void sendAllData(); // this has to be separate as we need to send the head first, then set the data
|
||||
void updateMode();
|
||||
PHLMONITOR monitor();
|
||||
|
||||
private:
|
||||
SP<CZwlrOutputHeadV1> resource;
|
||||
CMonitor* pMonitor = nullptr;
|
||||
PHLMONITORREF pMonitor;
|
||||
|
||||
void makeAndSendNewMode(SP<Aquamarine::SOutputMode> mode);
|
||||
void sendCurrentMode();
|
||||
|
|
@ -119,7 +119,7 @@ class COutputHead {
|
|||
|
||||
class COutputConfigurationHead {
|
||||
public:
|
||||
COutputConfigurationHead(SP<CZwlrOutputConfigurationHeadV1> resource_, CMonitor* pMonitor_);
|
||||
COutputConfigurationHead(SP<CZwlrOutputConfigurationHeadV1> resource_, PHLMONITOR pMonitor_);
|
||||
|
||||
bool good();
|
||||
|
||||
|
|
@ -127,11 +127,7 @@ class COutputConfigurationHead {
|
|||
|
||||
private:
|
||||
SP<CZwlrOutputConfigurationHeadV1> resource;
|
||||
CMonitor* pMonitor = nullptr;
|
||||
|
||||
struct {
|
||||
CHyprSignalListener monitorDestroy;
|
||||
} listeners;
|
||||
PHLMONITORREF pMonitor;
|
||||
|
||||
friend class COutputConfiguration;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue