Use the new showWindowMenu() variant.

svn path=/trunk/kdebase/kwin/; revision=317018
This commit is contained in:
Luciano Montanaro 2004-06-02 09:53:24 +00:00
parent 7240bff8f1
commit e034d686fd

View file

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