Commit 9c4bcb92 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

backends/drm: Don't sort DrmBackend::m_outputs

This std::sort() function traces its origin back to
cbbd6844. The sort step was necessary to
ensure that we get same configuration hash regardless the order in which
outputs were connected.

On the other hand, our KWinKScreenIntegration code already does that so
it seems excessive to sort outputs the second time.
parent d8ea87a9
Pipeline #228353 failed with stage
in 38 minutes and 39 seconds
......@@ -341,17 +341,6 @@ void DrmBackend::updateOutputs()
std::sort(m_outputs.begin(), m_outputs.end(), [](DrmAbstractOutput *a, DrmAbstractOutput *b) {
auto da = qobject_cast<DrmOutput *>(a);
auto db = qobject_cast<DrmOutput *>(b);
if (da && !db) {
return true;
} else if (da && db) {
return da->pipeline()->connector()->id() < db->pipeline()->connector()->id();
} else {
return false;
Q_EMIT screensQueried();
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