diff options
Diffstat (limited to 'twin/main.cpp')
| -rw-r--r-- | twin/main.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/twin/main.cpp b/twin/main.cpp index 540595a1b..beda5cef7 100644 --- a/twin/main.cpp +++ b/twin/main.cpp @@ -45,13 +45,13 @@ Atoms* atoms; int screen_number = -1; bool disable_twin_composition_manager = false; -static bool initting = FALSE; +static bool initting = false; static int x11ErrorHandler(Display *d, XErrorEvent *e) { char msg[80], req[80], number[80]; - bool ignore_badwindow = TRUE; //maybe temporary + bool ignore_badwindow = true; //maybe temporary if (initting && ( @@ -151,7 +151,7 @@ Application::Application( ) // if there was already twin running, it saved its configuration after loosing the selection -> reread config()->reparseConfiguration(); - initting = TRUE; // startup.... + initting = true; // startup.... // install X11 error handler XSetErrorHandler( x11ErrorHandler ); @@ -176,7 +176,7 @@ Application::Application( ) DCOPRef ref( "kded", "kded" ); ref.send( "unloadModule", TQCString( "kdetrayproxy" )); - initting = FALSE; // startup done, we are up and running now. + initting = false; // startup done, we are up and running now. dcopClient()->send( "ksplash", "", "upAndRunning(TQString)", TQString("wm started")); XEvent e; @@ -216,7 +216,7 @@ void Application::lostSelection() bool Application::x11EventFilter( XEvent *e ) { if ( Workspace::self()->workspaceEvent( e ) ) - return TRUE; + return true; return TDEApplication::x11EventFilter( e ); } @@ -255,7 +255,7 @@ TDE_EXPORT int kdemain( int argc, char * argv[] ) if (! restored) { // we only do the multihead fork if we are not restored by the session - // manager, since the session manager will register multiple twins, + // manager, since the session manager will register multiple twins, // one for each screen... TQCString multiHead = getenv("TDE_MULTIHEAD"); if (multiHead.lower() == "true") @@ -284,18 +284,18 @@ TDE_EXPORT int kdemain( int argc, char * argv[] ) { for (int i = 0; i < number_of_screens; i++ ) { - // if execution doesn't pass by here, then twin - // acts exactly as previously + // if execution doesn't pass by here, then twin + // acts exactly as previously if ( i != KWinInternal::screen_number && fork() == 0 ) { KWinInternal::screen_number = i; - // break here because we are the child process, we don't - // want to fork() anymore + // break here because we are the child process, we don't + // want to fork() anymore break; } } - // in the next statement, display_name shouldn't contain a screen - // number. If it had it, it was removed at the "pos" check + // in the next statement, display_name shouldn't contain a screen + // number. If it had it, it was removed at the "pos" check envir.sprintf("DISPLAY=%s.%d", display_name.data(), KWinInternal::screen_number); if (putenv( strdup(envir.data())) ) |
