Try harder to find the matching topmenu for kdesktop.

svn path=/trunk/kdebase/kwin/; revision=268022
icc-effect-5.14.5
Luboš Luňák 2003-11-18 18:10:36 +00:00
parent b55f71dcb7
commit 95cc10f6ca
1 changed files with 14 additions and 0 deletions

View File

@ -546,6 +546,20 @@ void Workspace::updateCurrentTopMenu()
break;
}
}
// TODO to be cleaned app with window grouping
// Without qt-copy patch #0009, the topmenu and desktop are not in the same group,
// thus the topmenu is not transient for it :-/.
if( menubar == NULL )
{
for( ClientList::ConstIterator it = topmenus.begin();
it != topmenus.end();
++it )
if( (*it)->groupTransient())
{
menubar = *it;
break;
}
}
}
// kdDebug() << "CURRENT TOPMENU:" << menubar << ":" << active_client << endl;