Move first updateXTime() in Workspace ctor to init

It's needed for Client initialization and that early the integration
with Qt is not yet working correctly (dropping to endless loop).
This commit is contained in:
Martin Gräßlin 2013-08-13 10:16:12 +02:00
parent 95f10a6c33
commit e72c52d075

View file

@ -197,8 +197,6 @@ Workspace::Workspace(bool restore)
ColorMapper *colormaps = new ColorMapper(this);
connect(this, SIGNAL(clientActivated(KWin::Client*)), colormaps, SLOT(update()));
updateXTime(); // Needed for proper initialization of user_time in Client ctor
delayFocusTimer = 0;
if (restore)
@ -266,6 +264,7 @@ Workspace::Workspace(bool restore)
void Workspace::init()
{
updateXTime(); // Needed for proper initialization of user_time in Client ctor
Screens *screens = Screens::self();
screens->setConfig(KGlobal::config());
screens->reconfigure();