From 9a0f2b6e9bd98b0d21b63bbca8fd1cf40b32e404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 25 Mar 2004 16:24:56 +0000 Subject: [PATCH] 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 --- group.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/group.cpp b/group.cpp index ae576a8dc6..cfc53fa44d 100644 --- a/group.cpp +++ b/group.cpp @@ -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();