Commit e6f08665 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Drop Output::updateTransform()

If the backend needs to apply custom logic when changing the transform,
it should override Platform::applyOutputChanges(); otherwise just update
the Output's internal transform state.
parent 8e7a8c5a
Pipeline #164500 passed with stage
in 13 minutes and 21 seconds
......@@ -92,11 +92,6 @@ void WaylandOutput::setGeometry(const QPoint &logicalPosition, const QSize &pixe
Q_EMIT m_backend->screensQueried();
}
void WaylandOutput::updateTransform(Transform transform)
{
setTransformInternal(transform);
}
void WaylandOutput::updateEnablement(bool enable)
{
setDpmsMode(enable ? DpmsMode::On : DpmsMode::Off);
......
......@@ -80,7 +80,6 @@ public:
}
void updateEnablement(bool enable) override;
void updateTransform(Transform transform) override;
void setDpmsMode(DpmsMode mode) override;
Q_SIGNALS:
......
......@@ -269,7 +269,7 @@ void Output::applyChanges(const OutputConfiguration &config)
Q_EMIT aboutToChange();
setEnabled(props->enabled);
updateTransform(props->transform);
setTransformInternal(props->transform);
moveTo(props->pos);
setScale(props->scale);
setVrrPolicy(props->vrrPolicy);
......
......@@ -376,10 +376,6 @@ protected:
{
Q_UNUSED(enable);
}
virtual void updateTransform(Transform transform)
{
Q_UNUSED(transform);
}
void setCurrentModeInternal(const QSize &size, int refreshRate);
void setTransformInternal(Transform transform);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment