wayland: Fix output order sanitization in kde-output-management-v2
We need to remove disabled outputs.
This commit is contained in:
parent
4f48258269
commit
a04609b46f
1 changed files with 2 additions and 2 deletions
|
@ -292,9 +292,9 @@ void OutputConfigurationV2Interface::kde_output_configuration_v2_apply(Resource
|
|||
outputOrder.erase(std::remove_if(outputOrder.begin(), outputOrder.end(), [this](const auto &pair) {
|
||||
const auto changeset = config.constChangeSet(pair.second->handle());
|
||||
if (changeset && changeset->enabled.has_value()) {
|
||||
return *changeset->enabled;
|
||||
return !changeset->enabled.value();
|
||||
} else {
|
||||
return pair.second->handle()->isEnabled();
|
||||
return !pair.second->handle()->isEnabled();
|
||||
}
|
||||
}),
|
||||
outputOrder.end());
|
||||
|
|
Loading…
Reference in a new issue