From 6f3db8f9feaf649ef11a4d99f168b4ae5088135b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 23 Apr 2004 14:51:30 +0000 Subject: [PATCH] Topmenus have special layer, avoid stacking operations with them. Fixes a small problem with #77341. svn path=/trunk/kdebase/kwin/; revision=305888 --- layers.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/layers.cpp b/layers.cpp index a3a52d956c..694240fbc9 100644 --- a/layers.cpp +++ b/layers.cpp @@ -270,6 +270,8 @@ void Workspace::lowerClient( Client* c ) { if ( !c ) return; + if( c->isTopMenu()) + return; c->cancelAutoRaise(); @@ -295,6 +297,8 @@ void Workspace::lowerClientWithinApplication( Client* c ) { if ( !c ) return; + if( c->isTopMenu()) + return; c->cancelAutoRaise(); @@ -321,6 +325,8 @@ void Workspace::raiseClient( Client* c ) { if ( !c ) return; + if( c->isTopMenu()) + return; c->cancelAutoRaise(); @@ -349,6 +355,8 @@ void Workspace::raiseClientWithinApplication( Client* c ) { if ( !c ) return; + if( c->isTopMenu()) + return; c->cancelAutoRaise(); @@ -397,6 +405,8 @@ void Workspace::lowerClientRequest( Client* c, NET::RequestSource src, Time /*ti void Workspace::restackClientUnderActive( Client* c ) { + if( c->isTopMenu()) + return; if( !active_client || active_client == c ) { raiseClient( c );