|
|
@ -1,7 +1,7 @@
|
|
|
|
/* This file is part of the KDE project
|
|
|
|
/* This file is part of the TDE project
|
|
|
|
Copyright (C) 1999 David Faure
|
|
|
|
Copyright (C) 1999 David Faure
|
|
|
|
Copyright (c) 2003 Oswald Buddenhagen <ossi@kde.org>
|
|
|
|
Copyright (c) 2003 Oswald Buddenhagen <ossi@kde.org>
|
|
|
|
Copyright (c) 2010-2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
|
|
|
Copyright (c) 2010-2015 Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
|
|
|
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
@ -260,8 +260,7 @@ int main( int argc, char **argv )
|
|
|
|
int parent_connection = 0; // socket to the parent saver
|
|
|
|
int parent_connection = 0; // socket to the parent saver
|
|
|
|
TQValueList<int> child_sockets;
|
|
|
|
TQValueList<int> child_sockets;
|
|
|
|
|
|
|
|
|
|
|
|
if (TDEGlobalSettings::isMultiHead())
|
|
|
|
if (TDEGlobalSettings::isMultiHead()) {
|
|
|
|
{
|
|
|
|
|
|
|
|
Display *dpy = XOpenDisplay(NULL);
|
|
|
|
Display *dpy = XOpenDisplay(NULL);
|
|
|
|
if (! dpy) {
|
|
|
|
if (! dpy) {
|
|
|
|
fprintf(stderr,
|
|
|
|
fprintf(stderr,
|
|
|
@ -278,8 +277,9 @@ int main( int argc, char **argv )
|
|
|
|
kdDebug() << "screen " << number_of_screens << " " << kdesktop_screen_number << " " << display_name << " " << starting_screen << endl;
|
|
|
|
kdDebug() << "screen " << number_of_screens << " " << kdesktop_screen_number << " " << display_name << " " << starting_screen << endl;
|
|
|
|
dpy = 0;
|
|
|
|
dpy = 0;
|
|
|
|
|
|
|
|
|
|
|
|
if ((pos = display_name.findRev('.')) != -1)
|
|
|
|
if ((pos = display_name.findRev('.')) != -1) {
|
|
|
|
display_name.remove(pos, 10);
|
|
|
|
display_name.remove(pos, 10);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQCString env;
|
|
|
|
TQCString env;
|
|
|
|
if (number_of_screens != 1) {
|
|
|
|
if (number_of_screens != 1) {
|
|
|
@ -297,7 +297,8 @@ int main( int argc, char **argv )
|
|
|
|
// break here because we are the child process, we don't
|
|
|
|
// break here because we are the child process, we don't
|
|
|
|
// want to fork() anymore
|
|
|
|
// want to fork() anymore
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
child_sockets.append(fd[1]);
|
|
|
|
child_sockets.append(fd[1]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|