mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
VST2 Client: Fix popupmenu window location in VST2 plugins under the AudioPluginHost
This commit is contained in:
parent
8ba09acc59
commit
fcd6752d4f
1 changed files with 3 additions and 1 deletions
|
|
@ -1864,7 +1864,9 @@ Rectangle<int> XWindowSystem::getWindowBounds (::Window windowH, ::Window parent
|
|||
}
|
||||
else
|
||||
{
|
||||
parentScreenPosition = Point<int> (rootX, rootY);
|
||||
// XGetGeometry returns wx and wy relative to the parent window's origin.
|
||||
// XTranslateCoordinates returns rootX and rootY relative to the root window.
|
||||
parentScreenPosition = Point<int> (rootX - wx, rootY - wy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue