From e36514f2b385ba71cca793b7c018df69a40487bb Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Wed, 2 Jun 2004 11:41:14 +0000 Subject: [PATCH] Use the new showWindowMenu() method. svn path=/trunk/kdebase/kwin/; revision=317047 --- clients/redmond/redmond.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/clients/redmond/redmond.cpp b/clients/redmond/redmond.cpp index 34909222ba..4b49789523 100644 --- a/clients/redmond/redmond.cpp +++ b/clients/redmond/redmond.cpp @@ -816,10 +816,14 @@ void RedmondDeco::menuButtonPressed() lastClient = this; t->start(); if (!dbl) { - QPoint menupoint(button[BtnMenu]->rect().bottomLeft().x()-3, - button[BtnMenu]->rect().bottomLeft().y()+4); + QRect menuRect = button[BtnMenu]->rect(); + QPoint menuTop = QPoint(menuRect.topLeft().x()-3, + menuRect.topLeft().y()); + QPoint menuBottom = QPoint(menuRect.bottomRight().x()+3, + menuRect.bottomRight().y()+4); KDecorationFactory* f = factory(); - showWindowMenu(button[BtnMenu]->mapToGlobal(menupoint)); + showWindowMenu(QRect(button[BtnMenu]->mapToGlobal(menuTop), + button[BtnMenu]->mapToGlobal(menuBottom))); if( !f->exists( this )) // 'this' was destroyed return; button[BtnMenu]->setDown(false);