Allow applying output changes to disabled outputs in base Platform::applyOutputChanges()

Since the base Platform::applyOutputChanges() implementation only
applies changes to enabled outputs, it's not possible to re-enable a
previously disabled output.
This commit is contained in:
Vlad Zahorodnii 2022-02-09 10:43:52 +02:00
parent e419faee39
commit b62630c8ac

View file

@ -151,8 +151,8 @@ void Platform::requestOutputsChange(KWaylandServer::OutputConfigurationV2Interfa
bool Platform::applyOutputChanges(const WaylandOutputConfig &config)
{
const auto outputs = enabledOutputs();
for (const auto &output : outputs) {
const auto availableOutputs = outputs();
for (const auto &output : availableOutputs) {
static_cast<AbstractWaylandOutput*>(output)->applyChanges(config);
}
return true;