From 1eb5bc816598318458e3a6459663af103a46094b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 18 Jul 2013 10:22:48 -0500 Subject: Beautify logout process --- ksmserver/server.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'ksmserver/server.cpp') 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()); -- cgit v1.2.1