make sure connect to screen changed signal after screen is created

REVIEW: 123461
BUG: 346453
FIXED-IN: 5.3
icc-effect-5.14.5
Weng Xuetian 2015-04-21 23:25:37 -07:00
parent d4af45da2d
commit 740be3e8d3
1 changed files with 2 additions and 3 deletions

View File

@ -148,9 +148,6 @@ 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
connect(screens(), SIGNAL(changed()), SLOT(desktopResized()));
options->loadConfig();
options->loadCompositingConfig(false);
ColorMapper *colormaps = new ColorMapper(this);
@ -218,6 +215,8 @@ void Workspace::init()
KSharedConfigPtr config = KSharedConfig::openConfig();
kwinApp()->createScreens();
Screens *screens = Screens::self();
// get screen support
connect(screens, SIGNAL(changed()), SLOT(desktopResized()));
screens->setConfig(config);
screens->reconfigure();
connect(options, SIGNAL(configChanged()), screens, SLOT(reconfigure()));