Introduce AbstractWaylandOutput::geometry

This commit is contained in:
Aleix Pol 2020-08-13 17:32:17 +02:00 committed by Aleix Pol Gonzalez
parent 062f1c3c87
commit 494c89a2d9
2 changed files with 5 additions and 0 deletions

View file

@ -35,6 +35,10 @@ AbstractWaylandOutput::AbstractWaylandOutput(QObject *parent)
[this] (KWaylandServer::OutputInterface::DpmsMode mode) {
updateDpms(mode);
});
connect(m_waylandOutput, &KWaylandServer::OutputInterface::globalPositionChanged, this, &AbstractWaylandOutput::geometryChanged);
connect(m_waylandOutput, &KWaylandServer::OutputInterface::pixelSizeChanged, this, &AbstractWaylandOutput::geometryChanged);
connect(m_waylandOutput, &KWaylandServer::OutputInterface::scaleChanged, this, &AbstractWaylandOutput::geometryChanged);
}
AbstractWaylandOutput::~AbstractWaylandOutput()

View file

@ -114,6 +114,7 @@ public:
Q_SIGNALS:
void modeChanged();
void geometryChanged();
void outputChange(const QRegion &damagedRegion);
protected: