Use the new showWindowMenu() variant.
svn path=/trunk/kdebase/kwin/; revision=317018
This commit is contained in:
parent
7240bff8f1
commit
e034d686fd
1 changed files with 3 additions and 10 deletions
|
@ -838,17 +838,10 @@ void B2Client::menuButtonPressed()
|
||||||
time.start();
|
time.start();
|
||||||
if (!dbl) {
|
if (!dbl) {
|
||||||
KDecorationFactory* f = factory();
|
KDecorationFactory* f = factory();
|
||||||
#if 0
|
QRect menuRect =button[BtnMenu]->rect();
|
||||||
QPoint menutop = button[BtnMenu]->mapToGlobal(
|
QPoint menutop = button[BtnMenu]->mapToGlobal(menuRect.topLeft());
|
||||||
button[BtnMenu]->rect().topLeft());
|
QPoint menubottom = button[BtnMenu]->mapToGlobal(menuRect.bottomRight());
|
||||||
QPoint menubottom = button[BtnMenu]->mapToGlobal(
|
|
||||||
button[BtnMenu]->rect().bottomRight());
|
|
||||||
showWindowMenu(QRect(menutop, menubottom));
|
showWindowMenu(QRect(menutop, menubottom));
|
||||||
#else
|
|
||||||
QPoint menupoint = button[BtnMenu]->mapToGlobal(
|
|
||||||
button[BtnMenu]->rect().bottomLeft());
|
|
||||||
showWindowMenu(menupoint);
|
|
||||||
#endif
|
|
||||||
if (!f->exists(this)) // 'this' was destroyed
|
if (!f->exists(this)) // 'this' was destroyed
|
||||||
return;
|
return;
|
||||||
button[BtnMenu]->setDown(false);
|
button[BtnMenu]->setDown(false);
|
||||||
|
|
Loading…
Reference in a new issue