From d3a37aa9aef58fbaedcef77d2797c22a015dc9c0 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Wed, 18 May 2022 13:34:45 +0200 Subject: [PATCH] Update device outputName when setting output BUG:451279 FIXED-IN:5.25.0 --- src/backends/libinput/device.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();