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:
parent
e419faee39
commit
b62630c8ac
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,8 @@ void Platform::requestOutputsChange(KWaylandServer::OutputConfigurationV2Interfa
|
||||||
|
|
||||||
bool Platform::applyOutputChanges(const WaylandOutputConfig &config)
|
bool Platform::applyOutputChanges(const WaylandOutputConfig &config)
|
||||||
{
|
{
|
||||||
const auto outputs = enabledOutputs();
|
const auto availableOutputs = outputs();
|
||||||
for (const auto &output : outputs) {
|
for (const auto &output : availableOutputs) {
|
||||||
static_cast<AbstractWaylandOutput*>(output)->applyChanges(config);
|
static_cast<AbstractWaylandOutput*>(output)->applyChanges(config);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue