diff options
Diffstat (limited to 'ksmserver/server.cpp')
-rw-r--r-- | ksmserver/server.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ksmserver/server.cpp b/ksmserver/server.cpp index ce118a529..003abf3af 100644 --- a/ksmserver/server.cpp +++ b/ksmserver/server.cpp @@ -913,7 +913,18 @@ bool KSMServer::isWM( const TQString& program ) const // therefore make sure it's recognized even if ksmserver // was initially started with different WM, and kwin replaced // it later - return program == wm || program == "kwin"; + return ((program == wm) || (program == "kwin")); +} + +bool KSMServer::isCM( const KSMClient* client ) const +{ + return isCM( client->program()); +} + +bool KSMServer::isCM( const TQString& program ) const +{ + // Returns true if the program in question is a composition manager + return (program == "kompmgr"); } bool KSMServer::defaultSession() const |