From b62630c8acbecda2c84b3f40dcf4c4cb34799506 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 9 Feb 2022 10:43:52 +0200 Subject: [PATCH] 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. --- src/platform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform.cpp b/src/platform.cpp index 1722e1e8a2..d601bae32d 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -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(output)->applyChanges(config); } return true;