Try harder to find the matching topmenu for kdesktop.

svn path=/trunk/kdebase/kwin/; revision=268022
This commit is contained in:
Luboš Luňák 2003-11-18 18:10:36 +00:00
parent b55f71dcb7
commit 95cc10f6ca

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;