From 37cdd4efb82ad61b2d40ecc4be578d5533631d76 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 18 Dec 2006 11:18:32 +0000 Subject: [PATCH] Many files were using KGlobal via the "#include " in kguiitem.h. Removed that include -> added many includes in the code. svn path=/trunk/KDE/kdebase/workspace/; revision=614585 --- main.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index d4a1046c69..e3045a66ce 100644 --- a/main.cpp +++ b/main.cpp @@ -14,6 +14,7 @@ License. See the file "COPYING" for the exact licensing terms. #include "main.h" +#include #include #include #include @@ -30,7 +31,6 @@ License. See the file "COPYING" for the exact licensing terms. #include "options.h" #include "sm.h" #include "utils.h" -#include "effects.h" #define INT8 _X11INT8 #define INT32 _X11INT32 @@ -118,8 +118,6 @@ Application::Application( ) options = new Options; atoms = new Atoms; - - initting = false; // TODO // create workspace. (void) new Workspace( isSessionRestored() ); @@ -146,8 +144,6 @@ Application::~Application() if( owner.ownerWindow() != None ) // if there was no --replace (no new WM) XSetInputFocus( display(), PointerRoot, RevertToPointerRoot, xTime() ); delete options; - delete effects; - delete atoms; } void Application::lostSelection() @@ -282,9 +278,9 @@ KDE_EXPORT int kdemain( int argc, char * argv[] ) QString appname; if (KWinInternal::screen_number == 0) - appname = "kwin"; + appname = "org.kde.kwin"; else - appname.sprintf("kwin-screen-%d", KWinInternal::screen_number); + appname.sprintf("org.kde.kwin-screen-%d", KWinInternal::screen_number); QDBusConnection::sessionBus().interface()->registerService( appname, QDBusConnectionInterface::DontQueueService );