Multihead fix.

Tell ksplash we're up and running.

svn path=/trunk/kdebase/kwin/; revision=83393
remotes/origin/Plasma/5.0
Waldo Bastian 25 years ago
parent 6f55f7337a
commit 414316d5dc
  1. 8
      main.cpp

@ -125,6 +125,7 @@ Application::Application( )
syncX(); // trigger possible errors, there's still a chance to abort syncX(); // trigger possible errors, there's still a chance to abort
initting = FALSE; // startup done, we are up and running now. 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 // we only do the multihead fork if we are not restored by the session
// manager, since the session manager will register multiple kwins, // manager, since the session manager will register multiple kwins,
// one for each screen... // one for each screen...
KInstance inst("kwin-multihead"); QCString multiHead = getenv("KDE_MULTIHEAD");
KConfig config("kdeglobals", true); if (multiHead.lower() == "true")
config.setGroup("X11"); {
if (config.readBoolEntry("enableMultihead")) {
Display* dpy = XOpenDisplay( NULL ); Display* dpy = XOpenDisplay( NULL );
if ( !dpy ) { if ( !dpy ) {
fprintf(stderr, "%s: FATAL ERROR while trying to open display %s\n", fprintf(stderr, "%s: FATAL ERROR while trying to open display %s\n",

Loading…
Cancel
Save