Commit e40cab07 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/kwayland: only consider enabled outputs for Xwayland scale


(cherry picked from commit 1dfad6d6)
parent 00c35605
Pipeline #246132 passed with stage
in 1 minute and 34 seconds
......@@ -45,7 +45,9 @@ WaylandBackend::WaylandBackend()
qreal scaleFactor = 1;
const auto outputs = newConfig->outputs();
for (auto output : outputs) {
scaleFactor = std::max(scaleFactor, output->scale());
if (output->isEnabled()) {
scaleFactor = std::max(scaleFactor, output->scale());
}
}
xwaylandGroup.writeEntry("Scale", scaleFactor, KConfig::Notify);
......
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