When the active window gets a modal dialog, activate the modal. Happens

with kwalletmanager and the wallet open dialog.

svn path=/trunk/kdebase/kwin/; revision=298549
This commit is contained in:
Luboš Luňák 2004-03-25 16:24:56 +00:00
parent 854e9cc05a
commit 9a0f2b6e9b

View file

@ -618,6 +618,8 @@ void Client::addTransient( Client* cl )
// assert( !cl->hasTransient( this, true )); will be fixed in checkGroupTransients()
assert( cl != this );
transients_list.append( cl );
if( workspace()->mostRecentlyActivatedClient() == this && cl->isModal())
workspace()->activateClient( findModal());
// kdDebug() << "ADDTRANS:" << this << ":" << cl << endl;
// kdDebug() << kdBacktrace() << endl;
// for( ClientList::ConstIterator it = transients_list.begin();