From e0a6d02984d773f4e4fb99e1c24c3e4dbf68a5ab Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 29 Jul 2022 01:41:06 +0200 Subject: [PATCH] [x11] Fix loading monitor edid i is the counter for the crtc loop, not the monitor loop This fixes loading the edid for all monitors and thus the output identifier effect --- src/backends/x11/standalone/x11_standalone_platform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/x11/standalone/x11_standalone_platform.cpp b/src/backends/x11/standalone/x11_standalone_platform.cpp index 0b718de77c..1ad9040415 100644 --- a/src/backends/x11/standalone/x11_standalone_platform.cpp +++ b/src/backends/x11/standalone/x11_standalone_platform.cpp @@ -566,8 +566,8 @@ void X11StandalonePlatform::doUpdateOutputs() }; bool ok; - if (auto data = edids[i].toByteArray(&ok); ok && !data.isEmpty()) { - if (auto edid = Edid(data, edids[i].data()->num_items); edid.isValid()) { + if (auto data = edids[j].toByteArray(&ok); ok && !data.isEmpty()) { + if (auto edid = Edid(data, edids[j].data()->num_items); edid.isValid()) { information.manufacturer = edid.manufacturerString(); information.model = edid.monitorName(); information.serialNumber = edid.serialNumber();