summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-25 22:42:20 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-25 22:42:20 +0100
commitff4a12d214bfa591d562228609d8780b69bba304 (patch)
tree828b33f1428b3bd482bf86ae31db4fadd7e5f80c /src/main.cpp
parentcdf374c02dc8d16f13be1b0260d738172592ab1a (diff)
downloadunity-window-decorator-ff4a12d214bfa591d562228609d8780b69bba304.tar.gz
unity-window-decorator-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.cpp8
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)