Try harder to find the matching topmenu for kdesktop.
svn path=/trunk/kdebase/kwin/; revision=268022
This commit is contained in:
parent
b55f71dcb7
commit
95cc10f6ca
1 changed files with 14 additions and 0 deletions
|
@ -546,6 +546,20 @@ void Workspace::updateCurrentTopMenu()
|
||||||
break;
|
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;
|
// kdDebug() << "CURRENT TOPMENU:" << menubar << ":" << active_client << endl;
|
||||||
|
|
Loading…
Reference in a new issue