workspace: also update xwayland scale when not changing the output order

This commit is contained in:
Xaver Hugl 2024-06-13 16:48:38 +02:00
parent 170b138026
commit 4f5fce8b7a

View file

@ -494,11 +494,11 @@ bool Workspace::applyOutputConfiguration(const OutputConfiguration &config, cons
return false;
}
updateOutputs(outputOrder);
m_outputConfigStore->storeConfig(kwinApp()->outputBackend()->outputs(), m_lidSwitchTracker->isLidClosed(), config, outputOrder);
m_outputConfigStore->storeConfig(kwinApp()->outputBackend()->outputs(), m_lidSwitchTracker->isLidClosed(), config, m_outputOrder);
KConfig cfg(QStringLiteral("kdeglobals"));
KConfigGroup kscreenGroup = cfg.group(QStringLiteral("KScreen"));
const bool xwaylandClientsScale = kscreenGroup.readEntry("XwaylandClientsScale", true);
if (xwaylandClientsScale && !outputOrder.isEmpty()) {
if (xwaylandClientsScale && !m_outputOrder.isEmpty()) {
double maxScale = 0;
for (Output *output : outputOrder) {
const auto changeset = config.constChangeSet(output);