do not cover the menu button with the menu

svn path=/trunk/kdebase/kwin/; revision=400739
This commit is contained in:
Sandro Giessl 2005-03-26 12:40:56 +00:00
parent b63d495fb9
commit 9ecf800caf

View file

@ -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