A somewhat hackish fix for #76026 (don't force non-modal dialogs above

their mainwindow).

svn path=/trunk/kdebase/kwin/; revision=329879
This commit is contained in:
Luboš Luňák 2004-07-16 11:19:47 +00:00
parent 97b3ba39a0
commit 7a8eda06ff

View file

@ -607,6 +607,12 @@ bool Workspace::keepTransientAbove( const Client* mainwindow, const Client* tran
// group transients way too high.
if( mainwindow->isTopMenu() && transient->groupTransient())
return false;
// This is rather a hack for #76026. Don't keep non-modal dialogs above
// the mainwindow, but only if they're group transient (since only such dialogs
// have taskbar entry in Kicker). A proper way of doing this (both kwin and kicker)
// needs to be found.
if( transient->isDialog() && !transient->isModal() && 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