[wayland] AbstractBackend indicates whether outputs are enabled
By default Outputs are considered to be enabled. This allows a concrete backend implementation to mark outputs as disabled (e.g. if dpms has put outputs into powersaving mode). This allows the Compositor to disable itself if outputs are not visible anyway.
This commit is contained in:
parent
e3ff85d4d9
commit
4f1033f17b
1 changed files with 7 additions and 0 deletions
|
@ -86,6 +86,9 @@ public:
|
||||||
bool supportsPointerWarping() const {
|
bool supportsPointerWarping() const {
|
||||||
return m_pointerWarping;
|
return m_pointerWarping;
|
||||||
}
|
}
|
||||||
|
bool areOutputsEnabled() const {
|
||||||
|
return m_outputsEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void pointerMotion(const QPointF &position, quint32 time);
|
void pointerMotion(const QPointF &position, quint32 time);
|
||||||
|
@ -128,6 +131,9 @@ protected:
|
||||||
void setSupportsPointerWarping(bool set) {
|
void setSupportsPointerWarping(bool set) {
|
||||||
m_pointerWarping = set;
|
m_pointerWarping = set;
|
||||||
}
|
}
|
||||||
|
void setOutputsEnabled(bool enabled) {
|
||||||
|
m_outputsEnabled = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void triggerCursorRepaint();
|
void triggerCursorRepaint();
|
||||||
|
@ -144,6 +150,7 @@ private:
|
||||||
QSize m_initialWindowSize;
|
QSize m_initialWindowSize;
|
||||||
QByteArray m_deviceIdentifier;
|
QByteArray m_deviceIdentifier;
|
||||||
bool m_pointerWarping = false;
|
bool m_pointerWarping = false;
|
||||||
|
bool m_outputsEnabled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue