diff --git a/src/backends/libinput/device.cpp b/src/backends/libinput/device.cpp index 19fe0349a7..abbd95d5c8 100644 --- a/src/backends/libinput/device.cpp +++ b/src/backends/libinput/device.cpp @@ -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();