be less agressive in not stealing focus. This makes xv (among others)
usable with KDE again svn path=/trunk/kdebase/kwin/; revision=149865
This commit is contained in:
parent
a99e99eacc
commit
509022ea62
1 changed files with 7 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue