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);