From 414316d5dcee9c20bfbb7b452b300ae6d3ceeea3 Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Sun, 18 Feb 2001 06:55:19 +0000 Subject: [PATCH] Multihead fix. Tell ksplash we're up and running. svn path=/trunk/kdebase/kwin/; revision=83393 --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index eb15dc4073..6b61b46528 100644 --- a/main.cpp +++ b/main.cpp @@ -125,6 +125,7 @@ Application::Application( ) syncX(); // trigger possible errors, there's still a chance to abort initting = FALSE; // startup done, we are up and running now. + dcopClient()->send( "ksplash", "", "upAndRunning(QString)", QString("wm started")); } @@ -214,10 +215,9 @@ int kdemain( int argc, char * argv[] ) // we only do the multihead fork if we are not restored by the session // manager, since the session manager will register multiple kwins, // one for each screen... - KInstance inst("kwin-multihead"); - KConfig config("kdeglobals", true); - config.setGroup("X11"); - if (config.readBoolEntry("enableMultihead")) { + QCString multiHead = getenv("KDE_MULTIHEAD"); + if (multiHead.lower() == "true") + { Display* dpy = XOpenDisplay( NULL ); if ( !dpy ) { fprintf(stderr, "%s: FATAL ERROR while trying to open display %s\n",