From e034d686fdb64299ecb6cc0c146878d43ac113db Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Wed, 2 Jun 2004 09:53:24 +0000 Subject: [PATCH] Use the new showWindowMenu() variant. svn path=/trunk/kdebase/kwin/; revision=317018 --- clients/b2/b2client.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index 166d99365c..e31349a5af 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -838,17 +838,10 @@ void B2Client::menuButtonPressed() time.start(); if (!dbl) { KDecorationFactory* f = factory(); -#if 0 - QPoint menutop = button[BtnMenu]->mapToGlobal( - button[BtnMenu]->rect().topLeft()); - QPoint menubottom = button[BtnMenu]->mapToGlobal( - button[BtnMenu]->rect().bottomRight()); + QRect menuRect =button[BtnMenu]->rect(); + QPoint menutop = button[BtnMenu]->mapToGlobal(menuRect.topLeft()); + QPoint menubottom = button[BtnMenu]->mapToGlobal(menuRect.bottomRight()); showWindowMenu(QRect(menutop, menubottom)); -#else - QPoint menupoint = button[BtnMenu]->mapToGlobal( - button[BtnMenu]->rect().bottomLeft()); - showWindowMenu(menupoint); -#endif if (!f->exists(this)) // 'this' was destroyed return; button[BtnMenu]->setDown(false);