be less agressive in not stealing focus. This makes xv (among others)

usable with KDE again

svn path=/trunk/kdebase/kwin/; revision=149865
icc-effect-5.14.5
Matthias Ettrich 2002-04-16 19:23:45 +00:00
parent a99e99eacc
commit 509022ea62
1 changed files with 7 additions and 5 deletions

View File

@ -856,8 +856,10 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
// window does not stem from a restored session.
Client* ac = workspace()->activeClient();
unsigned long usertime = 0;
if ( !isTransient() && !session && ac && !ac->isDesktop() &&
ac->userTime() > userTime() ) {
ac->resourceClass() != resourceClass() &&
( usertime = userTime() ) > 0 && ac->userTime() > usertime ) {
workspace()->stackClientUnderActive( this );
show();
} else {