diff options
author | Danny Baumann <dannybaumann@web.de> | 2009-02-25 22:42:20 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2009-02-25 22:42:20 +0100 |
commit | ff4a12d214bfa591d562228609d8780b69bba304 (patch) | |
tree | 828b33f1428b3bd482bf86ae31db4fadd7e5f80c /src/main.cpp | |
parent | cdf374c02dc8d16f13be1b0260d738172592ab1a (diff) | |
download | compiz-with-glib-mainloop-ff4a12d214bfa591d562228609d8780b69bba304.tar.gz compiz-with-glib-mainloop-ff4a12d214bfa591d562228609d8780b69bba304.tar.bz2 |
Get plugin loading improvements from 0.8 branch and add --debug command
line parameter that enables logging of CompLogLevelDebug messages on
stdout.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index b9ba1c5..7adf004 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,6 +54,7 @@ bool replaceCurrentWm = false; bool indirectRendering = false; bool noDetection = false; bool useDesktopHints = true; +bool debugOutput = false; bool useCow = true; @@ -73,7 +74,8 @@ usage (void) "[--sm-client-id ID] " "[--no-detection]\n " "[--ignore-desktop-hints] " - " [--use-root-window]\n " + "[--use-root-window]\n " + "[--debug] " "[--version] " "[--help] " "[PLUGIN]...\n", @@ -179,6 +181,10 @@ main (int argc, char **argv) printf (PACKAGE_STRING "\n"); return 0; } + else if (!strcmp (argv[i], "--debug")) + { + debugOutput = true; + } else if (!strcmp (argv[i], "--display")) { if (i + 1 < argc) |