1
0
Fork 0
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:
reuk 2022-03-14 19:07:11 +00:00
parent 8ba09acc59
commit fcd6752d4f
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

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