From 3c2f0e626b365d9c3b426666c85e0dfdf175bd38 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 13 Dec 2022 16:14:22 +0100 Subject: [PATCH] workspace: match KScreen when computing the hash without an edid --- src/workspace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index d43bf62c5a..5c936b8da3 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -519,13 +519,13 @@ namespace KWinKScreenIntegration /// See KScreen::Output::hashMd5 QString outputHash(Output *output) { - QCryptographicHash hash(QCryptographicHash::Md5); if (!output->edid().isEmpty()) { + QCryptographicHash hash(QCryptographicHash::Md5); hash.addData(output->edid()); + return QString::fromLatin1(hash.result().toHex()); } else { - hash.addData(output->name().toLatin1()); + return output->name(); } - return QString::fromLatin1(hash.result().toHex()); } /// See KScreen::Config::connectedOutputsHash in libkscreen