From 26b345358fdcc11938c16990ac42d27239a353bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 20 Feb 2012 10:21:47 +0100 Subject: [PATCH] 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. --- tiling/tiling.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tiling/tiling.cpp b/tiling/tiling.cpp index 5257284ed3..8cee38089e 100644 --- a/tiling/tiling.cpp +++ b/tiling/tiling.cpp @@ -88,8 +88,6 @@ void Tiling::setEnabled(bool tiling) config.writeEntry("TilingOn", m_enabled); config.sync(); options->tilingOn = m_enabled; - options->tilingLayout = static_cast(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*)));