summaryrefslogtreecommitdiffstats
path: root/ksmserver/main.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-04 18:12:45 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-04 18:12:45 -0600
commit4546adf40c34f1ad89a8924e81cf94a5af768093 (patch)
tree897ed37b8aa2d15d68a14b80c590d22f439675fa /ksmserver/main.cpp
parentb5d92fb45b0796f0140c2917c238fd0b6a192300 (diff)
downloadtdebase-4546adf40c34f1ad89a8924e81cf94a5af768093.tar.gz
tdebase-4546adf40c34f1ad89a8924e81cf94a5af768093.zip
Initial attempt at adding third part WM support to TDE
Diffstat (limited to 'ksmserver/main.cpp')
-rw-r--r--ksmserver/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ksmserver/main.cpp b/ksmserver/main.cpp
index a7f8ef3d9..c971c2dde 100644
--- a/ksmserver/main.cpp
+++ b/ksmserver/main.cpp
@@ -35,6 +35,7 @@ static const KCmdLineOptions options[] =
{ "restore", I18N_NOOP("Restores the saved user session if available"), 0},
{ "w", 0, 0 },
{ "windowmanager <wm>", I18N_NOOP("Starts 'wm' in case no other window manager is \nparticipating in the session. Default is 'twin'"), 0},
+ { "windowmanageraddargs <wm>", I18N_NOOP("Pass additional arguments to the window manager. Default is ''"), 0},
{ "nolocal", I18N_NOOP("Also allow remote connections"), 0},
KCmdLineLastOption
};
@@ -203,6 +204,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char* argv[] )
}
TQCString wm = args->getOption("windowmanager");
+ TQCString wmaddargs = args->getOption("windowmanageraddargs");
if ( wm.isEmpty() )
wm = "twin";
@@ -218,7 +220,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char* argv[] )
only_local = false;
#endif
- KSMServer *server = new KSMServer( TQString::fromLatin1(wm), only_local);
+ KSMServer *server = new KSMServer( TQString::fromLatin1(wm), TQString::fromLatin1(wmaddargs), only_local);
kapp->dcopClient()->setDefaultObject( server->objId() );
IceSetIOErrorHandler( IoErrorHandler );