diff options
author | Timothy Pearson <[email protected]> | 2013-07-18 10:22:48 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-07-18 10:22:48 -0500 |
commit | 1eb5bc816598318458e3a6459663af103a46094b (patch) | |
tree | 145e8ec65da86972a2fcf2f25ff898f1f29009a0 /ksmserver/server.cpp | |
parent | d41051b3a2e2440f8648a8b30bc0e4b3524d3f13 (diff) | |
download | tdebase-1eb5bc816598318458e3a6459663af103a46094b.tar.gz tdebase-1eb5bc816598318458e3a6459663af103a46094b.zip |
Beautify logout process
Diffstat (limited to 'ksmserver/server.cpp')
-rw-r--r-- | ksmserver/server.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ksmserver/server.cpp b/ksmserver/server.cpp index 214108fb4..6e3ed44a3 100644 --- a/ksmserver/server.cpp +++ b/ksmserver/server.cpp @@ -514,8 +514,9 @@ static void sighandler(int sig) delete server; } - if (kapp) + if (kapp) { kapp->quit(); + } //::exit(0); } @@ -945,6 +946,17 @@ bool KSMServer::isCM( const TQString& program ) const return (program == "kompmgr"); } +bool KSMServer::isDesktop( const KSMClient* client ) const +{ + return isDesktop( client->program()); +} + +bool KSMServer::isDesktop( const TQString& program ) const +{ + // Returns true if the program in question is a desktop + return (program == "kdesktop"); +} + bool KSMServer::isNotifier( const KSMClient* client ) const { return isNotifier( client->program()); |