Apply the rgbrange read from Kscreen configuration on startup
CCBUG: 442520
This commit is contained in:
parent
93d5127014
commit
d81b106c15
2 changed files with 5 additions and 0 deletions
|
@ -158,6 +158,7 @@ void AbstractWaylandOutput::applyChanges(const WaylandOutputConfig &config)
|
|||
moveTo(props->pos);
|
||||
setScale(props->scale);
|
||||
setVrrPolicy(props->vrrPolicy);
|
||||
setRgbRangeInternal(props->rgbRange);
|
||||
|
||||
Q_EMIT changed();
|
||||
}
|
||||
|
|
|
@ -462,6 +462,10 @@ void DrmBackend::readOutputsConfiguration(const QVector<DrmAbstractOutput*> &out
|
|||
}
|
||||
props->transform = KWinKScreenIntegration::toDrmTransform(outputInfo["rotation"].toInt());
|
||||
|
||||
props->overscan = static_cast<uint32_t>(outputInfo["overscan"].toInt(props->overscan));
|
||||
props->vrrPolicy = static_cast<RenderLoop::VrrPolicy>(outputInfo["vrrpolicy"].toInt(static_cast<uint32_t>(props->vrrPolicy)));
|
||||
props->rgbRange = static_cast<AbstractWaylandOutput::RgbRange>(outputInfo["rgbrange"].toInt(static_cast<uint32_t>(props->rgbRange)));
|
||||
|
||||
if (const QJsonObject mode = outputInfo["mode"].toObject(); !mode.isEmpty()) {
|
||||
const QJsonObject size = mode["size"].toObject();
|
||||
props->modeSize = QSize(size["width"].toInt(), size["height"].toInt());
|
||||
|
|
Loading…
Reference in a new issue