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
This commit is contained in:
parent
936b63dc1a
commit
3f69a5d09b
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue