Don't keep group transients above topmenus.
svn path=/trunk/kdebase/kwin/; revision=269885
This commit is contained in:
parent
4ee178b277
commit
965a44962e
1 changed files with 6 additions and 0 deletions
|
@ -563,6 +563,12 @@ ClientList Workspace::ensureStackingOrder( const ClientList& list ) const
|
|||
// there may be some special cases where this rule shouldn't be enfored
|
||||
bool Workspace::keepTransientAbove( const Client* mainwindow, const Client* transient )
|
||||
{
|
||||
// When topmenu's mainwindow becomes active, topmenu is raised and shown.
|
||||
// They also belong to the Dock layer. This makes them to be very high.
|
||||
// Therefore don't keep group transients above them, otherwise this would move
|
||||
// group transients way too high.
|
||||
if( mainwindow->isTopMenu() && transient->groupTransient())
|
||||
return false;
|
||||
return true;
|
||||
// #63223 - don't keep transients above docks, because the dock is kept high,
|
||||
// and e.g. dialogs for them would be too high too
|
||||
|
|
Loading…
Reference in a new issue