From 965a44962e2f3b82d89fed82e9ca6af69d7759a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 27 Nov 2003 14:05:42 +0000 Subject: [PATCH] Don't keep group transients above topmenus. svn path=/trunk/kdebase/kwin/; revision=269885 --- layers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layers.cpp b/layers.cpp index 839dea069f..27841f9a4e 100644 --- a/layers.cpp +++ b/layers.cpp @@ -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