Update device outputName when setting output

BUG:451279
FIXED-IN:5.25.0
This commit is contained in:
David Redondo 2022-05-18 13:34:45 +02:00
parent b0b551653f
commit d3a37aa9ae

View file

@ -666,8 +666,10 @@ void Device::setOutput(Output *output)
#ifndef KWIN_BUILD_TESTING
m_output = output;
if (m_output) {
m_outputName = output->name();
writeEntry(ConfigKey::OutputName, output->name());
} else {
m_outputName = QString();
writeEntry(ConfigKey::OutputName, QString());
}
Q_EMIT outputNameChanged();