kscreenintegration: fix rotation not being preserved from Plasma 5

This commit is contained in:
Xaver Hugl 2024-02-09 21:32:46 +01:00 committed by Vlad Zahorodnii
parent 857766eb74
commit 2ca1d3fd4c

View file

@ -224,6 +224,7 @@ std::optional<std::pair<OutputConfiguration, QList<Output *>>> readOutputConfig(
}
if (const QJsonValue rotation = globalInfo["rotation"]; !rotation.isUndefined()) {
props->transform = KScreenIntegration::toKWinTransform(rotation.toInt());
props->manualTransform = props->transform;
}
if (const QJsonValue overscan = globalInfo["overscan"]; !overscan.isUndefined()) {
props->overscan = globalInfo["overscan"].toInt();