do not stack under desktops

svn path=/trunk/kdebase/kwin/; revision=140195
This commit is contained in:
Matthias Ettrich 2002-03-02 15:00:59 +00:00
parent a266fb2fc0
commit 6c9397cc51

View file

@ -842,8 +842,9 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
// window does not stem from a restored session. // window does not stem from a restored session.
Client* ac = workspace()->activeClient(); Client* ac = workspace()->activeClient();
if ( !session && ac && ac->userTime() > userTime() if ( !session && ac && !ac->isDesktop() &&
&& ( !isTransient() || mainClient() != ac ) ) { ac->userTime() > userTime() &&
( !isTransient() || mainClient() != ac ) ) {
workspace()->stackClientUnderActive( this ); workspace()->stackClientUnderActive( this );
show(); show();
} else { } else {