From 9a18de01715ef5ec43b057ce76b077c9df2f54a5 Mon Sep 17 00:00:00 2001 From: Arthur Arlt Date: Fri, 29 Jul 2011 10:57:02 +0200 Subject: [PATCH] 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 --- workspace.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 74a854e5ef..1d3c5ea88d 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -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();