Move creation of Tiling some lines up

Since there was a crash caused by calling a function of
the not yet initialized class Tiling, the creation was
just moved some lines up. The problem does not occur anymore.

BUG: 278740
This commit is contained in:
Arthur Arlt 2011-07-29 10:57:02 +02:00
parent 78783bfb49
commit 9a18de0171

View file

@ -193,6 +193,10 @@ Workspace::Workspace(bool restore)
delayFocusTimer = 0;
#ifdef KWIN_BUILD_TILING
m_tiling = new Tiling(this);
#endif
if (restore)
loadSessionInfo();
@ -241,9 +245,6 @@ Workspace::Workspace(bool restore)
desktop_change_osd = new DesktopChangeOSD(this);
#endif
m_outline = new Outline();
#ifdef KWIN_BUILD_TILING
m_tiling = new Tiling(this);
#endif
initShortcuts();