From 3f69a5d09b3d4aea5320d6d8c61097c67a6ac219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 16 Jun 2013 13:56:28 +0200 Subject: [PATCH] move Screens::create post global config reading It calls KConfigGroup what is not thread safe and collides with threaded config reading. BUG: 321164 FIXED-IN: 4.11 REVIEW: 111082 --- workspace.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index e6041adcd0..b3ae147318 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -154,10 +154,6 @@ Workspace::Workspace(bool restore) // start the cursor support Cursor::create(this); - // get screen support - Screens *screens = Screens::create(this); - connect(screens, SIGNAL(changed()), SLOT(desktopResized())); - #ifdef KWIN_BUILD_ACTIVITIES Activities *activities = Activities::create(this); connect(activities, SIGNAL(currentChanged(QString)), SLOT(updateCurrentActivity(QString))); @@ -165,6 +161,11 @@ Workspace::Workspace(bool restore) // PluginMgr needs access to the config file, so we need to wait for it for finishing reparseConfigFuture.waitForFinished(); + + // get screen support + Screens *screens = Screens::create(this); + connect(screens, SIGNAL(changed()), SLOT(desktopResized())); + options->loadConfig(); options->loadCompositingConfig(false); DecorationPlugin::create(this);