[5.27] VST3 Contextual Menu Y Position Incorrect
Hi,
I'm developing a plugin (with a fork of WDL-OL) and in looking at the VST3 version in Reaper I notice that the contextual menus are created in the wrong position (which doesn't happen in other hosts).
The X position is correct, but the Y position is flipped in the window (it is a mirror of the requested position). The code that pulls up the menu is as follows:
IContextMenu* menu = handler->createContextMenu(viewsArray.at(0), &p);
if (menu)
{
x /= GetGUI()->GetScalingFactor();
y /= GetGUI()->GetScalingFactor();
menu->popup((UCoord) x,(UCoord) y);
menu->release();
}
menu is the popup returned by the host and which is passed coordinates in the menu-popup() call.
I have verified that the x and y with which I call the menu are correct, but REAPER displays at the wrong Y position. I don't have another VST3 with contextual menu support to check again, but any VST3 that does support it should exhibit the problem.
Reaper 32/64 bit
Mac OS 10.10.5
Thanks
Alex
|