From 72af309317b6b5035dd146427b5fc7efebedc222 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 18 Oct 2021 12:41:07 +0200 Subject: [PATCH] platforms/drm: reverse output creation order This was inverted from 5.22, which switches plasma layouts and the default Xwayland primary screen. --- src/plugins/platforms/drm/drm_gpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/drm/drm_gpu.cpp b/src/plugins/platforms/drm/drm_gpu.cpp index 62eb58e48d..520f6fc5f8 100644 --- a/src/plugins/platforms/drm/drm_gpu.cpp +++ b/src/plugins/platforms/drm/drm_gpu.cpp @@ -331,7 +331,8 @@ bool DrmGpu::updateOutputs() } m_pipelines << config; - for (const auto &pipeline : qAsConst(config)) { + for (auto it = config.crbegin(); it != config.crend(); it++) { + const auto &pipeline = *it; auto output = pipeline->output(); if (pipeline->connector()->isNonDesktop()) { if (const auto &leaseOutput = findLeaseOutput(pipeline->connector()->id())) {