Commit 03aba1ab authored by Sebastian Kügler's avatar Sebastian Kügler

Keep monitoring the initial config

We have to keep the initial config monitored since some events only arrive
there. Switching the monitor to a new config caused a regression where docked
displays on X11 wouldn't be recognized, so make sure we keep track of the
"old" one as well.

Tested and verified to work by Jan Kundrát, thanks!
parent 8719c33e
......@@ -140,7 +140,6 @@ void KScreenDaemon::doApplyConfig(const KScreen::ConfigPtr& config)
{
qCDebug(KSCREEN_KDED) << "doApplyConfig()";
setMonitorForChanges(false);
KScreen::ConfigMonitor::instance()->removeConfig(m_monitoredConfig);
m_monitoredConfig = config;
KScreen::ConfigMonitor::instance()->addConfig(m_monitoredConfig);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment