diff --git a/client.cpp b/client.cpp index f317f571f8..65263112ae 100644 --- a/client.cpp +++ b/client.cpp @@ -848,9 +848,8 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial ) // window does not stem from a restored session. Client* ac = workspace()->activeClient(); - if ( !session && ac && !ac->isDesktop() && - ac->userTime() > userTime() && - ( !isTransient() || mainClient() != ac ) ) { + if ( !isTransient() && !session && ac && !ac->isDesktop() && + ac->userTime() > userTime() ) { workspace()->stackClientUnderActive( this ); show(); } else {