diff options
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()); |