workspace: match KScreen when computing the hash without an edid
This commit is contained in:
parent
892393ffa1
commit
3c2f0e626b
1 changed files with 3 additions and 3 deletions
|
@ -519,13 +519,13 @@ namespace KWinKScreenIntegration
|
||||||
/// See KScreen::Output::hashMd5
|
/// See KScreen::Output::hashMd5
|
||||||
QString outputHash(Output *output)
|
QString outputHash(Output *output)
|
||||||
{
|
{
|
||||||
QCryptographicHash hash(QCryptographicHash::Md5);
|
|
||||||
if (!output->edid().isEmpty()) {
|
if (!output->edid().isEmpty()) {
|
||||||
|
QCryptographicHash hash(QCryptographicHash::Md5);
|
||||||
hash.addData(output->edid());
|
hash.addData(output->edid());
|
||||||
|
return QString::fromLatin1(hash.result().toHex());
|
||||||
} else {
|
} else {
|
||||||
hash.addData(output->name().toLatin1());
|
return output->name();
|
||||||
}
|
}
|
||||||
return QString::fromLatin1(hash.result().toHex());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See KScreen::Config::connectedOutputsHash in libkscreen
|
/// See KScreen::Config::connectedOutputsHash in libkscreen
|
||||||
|
|
Loading…
Reference in a new issue