Don't re-read config options which cannot have been changed

Reading config options is only done in options.cpp which is
triggered by Workspace whenever the config changed.
This commit is contained in:
Martin Gräßlin 2012-02-20 10:21:47 +01:00
parent 00913cc4d6
commit 26b345358f

View file

@ -88,8 +88,6 @@ void Tiling::setEnabled(bool tiling)
config.writeEntry("TilingOn", m_enabled);
config.sync();
options->tilingOn = m_enabled;
options->tilingLayout = static_cast<TilingLayoutFactory::Layouts>(config.readEntry("TilingDefaultLayout", 0));
options->tilingRaisePolicy = config.readEntry("TilingRaisePolicy", 0);
if (m_enabled) {
connect(m_workspace, SIGNAL(clientAdded(KWin::Client*)), this, SLOT(createTile(KWin::Client*)));