From 1f40ada72d693d681ec6a32c2ef717e8dd73b5bb Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 10 Sep 2011 22:32:00 +0000 Subject: Force windows with the modal system notification atom set to stay above other windows Enhance logout sequence appearance Add remote folder synchronization on logout support Fix flickering to black window with subsequent partial repaint of certain widgets occurring during fancy logout sequence git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1252640 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksmserver/server.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ksmserver/server.cpp') 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 -- cgit v1.2.1