be more conservative with not stealing focus, basically do not not steal

focus for transient windows.

There have been issues with some konqueror dialogs on some machines, and
this is the safest solution for now.

svn path=/trunk/kdebase/kwin/; revision=140339
This commit is contained in:
Matthias Ettrich 2002-03-02 21:18:45 +00:00
parent c981ba005c
commit 5af9e44aa6

View file

@ -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 {