summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-26 22:25:29 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-26 22:25:29 +0100
commit49a9447c12edc4894d90286547a35d689fc614ad (patch)
treef4a1928dbc5e897cb20daa28b1795d11a69dfa40 /src/main.cpp
parentbbca80e1bcb157eb82f74e338ab83019375659e5 (diff)
downloadunity-window-decorator-49a9447c12edc4894d90286547a35d689fc614ad.tar.gz
unity-window-decorator-49a9447c12edc4894d90286547a35d689fc614ad.tar.bz2
Coding style, optimizations.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 22b6cca..8554ac1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -55,7 +55,6 @@ bool indirectRendering = false;
bool noDetection = false;
bool useDesktopHints = false;
bool debugOutput = false;
-
bool useCow = true;
CompMetadata *coreMetadata = NULL;
@@ -82,7 +81,6 @@ usage (void)
programName);
}
-
static void
signalHandler (int sig)
{
@@ -93,11 +91,11 @@ signalHandler (int sig)
waitpid (-1, &status, WNOHANG | WUNTRACED);
break;
case SIGHUP:
- restartSignal = TRUE;
+ restartSignal = true;
break;
case SIGINT:
case SIGTERM:
- shutDown = TRUE;
+ shutDown = true;
default:
break;
}
@@ -192,7 +190,7 @@ main (int argc, char **argv)
}
else if (!strcmp (argv[i], "--indirect-rendering"))
{
- indirectRendering = TRUE;
+ indirectRendering = true;
}
else if (!strcmp (argv[i], "--keep-desktop-hints"))
{
@@ -204,15 +202,15 @@ main (int argc, char **argv)
}
else if (!strcmp (argv[i], "--use-root-window"))
{
- useCow = FALSE;
+ useCow = false;
}
else if (!strcmp (argv[i], "--replace"))
{
- replaceCurrentWm = TRUE;
+ replaceCurrentWm = true;
}
else if (!strcmp (argv[i], "--sm-disable"))
{
- disableSm = TRUE;
+ disableSm = true;
}
else if (!strcmp (argv[i], "--sm-client-id"))
{
@@ -221,7 +219,7 @@ main (int argc, char **argv)
}
else if (!strcmp (argv[i], "--no-detection"))
{
- noDetection = TRUE;
+ noDetection = true;
}
else if (!strcmp (argv[i], "--bg-image"))
{