move context menus on applets according to their popup position when we're a panel containment
svn path=/trunk/KDE/kdelibs/; revision=1123209
This commit is contained in:
parent
62f2eb46f1
commit
80bc92740f
@ -761,7 +761,12 @@ bool ContainmentPrivate::showContextMenu(const QPointF &point, const QPoint &scr
|
|||||||
|
|
||||||
if (!desktopMenu.isEmpty()) {
|
if (!desktopMenu.isEmpty()) {
|
||||||
//kDebug() << "executing at" << screenPos;
|
//kDebug() << "executing at" << screenPos;
|
||||||
desktopMenu.exec(screenPos);
|
QPoint pos = screenPos;
|
||||||
|
if (applet && isPanelContainment()) {
|
||||||
|
desktopMenu.adjustSize();
|
||||||
|
pos = applet->popupPosition(desktopMenu.size());
|
||||||
|
}
|
||||||
|
desktopMenu.exec(pos);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user