From 9ecf800cafa86bf93bc73a216a3c5456e58db5af Mon Sep 17 00:00:00 2001 From: Sandro Giessl Date: Sat, 26 Mar 2005 12:40:56 +0000 Subject: [PATCH] do not cover the menu button with the menu svn path=/trunk/kdebase/kwin/; revision=400739 --- lib/kcommondecoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kcommondecoration.cpp b/lib/kcommondecoration.cpp index dca6eaaa04..24acacfcde 100644 --- a/lib/kcommondecoration.cpp +++ b/lib/kcommondecoration.cpp @@ -588,7 +588,7 @@ void KCommonDecoration::menuButtonPressed() if (!dbl || !decorationBehaviour(DB_MenuClose) ) { QRect menuRect = m_button[MenuButton]->rect(); QPoint menutop = m_button[MenuButton]->mapToGlobal(menuRect.topLeft()); - QPoint menubottom = m_button[MenuButton]->mapToGlobal(menuRect.bottomRight()); + QPoint menubottom = m_button[MenuButton]->mapToGlobal(menuRect.bottomRight())+QPoint(0,2); KDecorationFactory* f = factory(); showWindowMenu(QRect(menutop, menubottom)); if( !f->exists( this )) // 'this' was deleted