From 7a8eda06ff88127dd5d3eabd031672815eb05d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 16 Jul 2004 11:19:47 +0000 Subject: [PATCH] A somewhat hackish fix for #76026 (don't force non-modal dialogs above their mainwindow). svn path=/trunk/kdebase/kwin/; revision=329879 --- layers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layers.cpp b/layers.cpp index de82bb42a1..e583c9f414 100644 --- a/layers.cpp +++ b/layers.cpp @@ -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