Screen position in VST plugin

Hi.

I’m trying to get the screen position in the demo plugin, I’ve tried:
getScreenBounds() / localAreaToGlobal() / getScreenPosition /…

But all it get is the relative position in the plugin itself.

How can I get the screen position?

Thanks.

Those methods should work just like in any other window… Which OS and host is it?

My bad, it does work.

Thanks.