diff options
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r-- | kdesktop/lock/main.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc index 93206951d..5853da17a 100644 --- a/kdesktop/lock/main.cc +++ b/kdesktop/lock/main.cc @@ -252,19 +252,21 @@ int main( int argc, char **argv ) } } - if (args->isSet( "forcelock" ) || (signalled_forcelock == TRUE)) + if (args->isSet( "forcelock" ) || (signalled_forcelock == TRUE)) { trinity_desktop_lock_forced = TRUE; + } LockProcess process(child, (args->isSet( "blank" ) || (signalled_blank == TRUE))); - if (!child) + if (!child) { process.setChildren(child_sockets); - else + } + else { process.setParent(parent_connection); + } bool rt; bool sig = false; - if( !child && (args->isSet( "forcelock" ) || (signalled_forcelock == TRUE))) - { + if( (!child && (args->isSet( "forcelock" )) || (signalled_forcelock == TRUE))) { rt = process.lock(); sig = true; } |