I’m having a weird issue, where getMouseXYRelative()
acts like the plugin-window was in the top left corner off the screen regardless where it actually is. Meaning: if I position the window top-left, everything works fine, moving it away, I have to trigger the sections as if it was top-left.
I only have this issue in the VST2-build, the standalone acts normal (both Linux).
I tried to dig a litte deeper: The function getMouseXYRelative()
seems to be calling
Point<int> Component::getMouseXYRelative() const
{
return getLocalPoint (nullptr, Desktop::getMousePosition());
}
which in turn tries to find the highest level component and then calculate the offset.
However I have no clue what could be wrong. Anyone with an idea?
EDIT: It seems to me that all are working well, only the highest level conversion (window -> screen) is failing. Hence the absence of the offset.