DialogWindow appears on wrong monitor

Hi!

I am using DialogWindow::LaunchOptions::create() to create a DialogWindow.
The thing is : My Mac has two monitors. And the DialogWindow is appearing on the wrong one. I.e. not the one where my JUCE application is running on.

Is there a way to know, which monitor the JUCE application is running on and make a DialogWindow appear on that monitor?

I have a standalone application on JUCE 6.1.5, running macOs 12.3.1.

You can get the Display by doing something like:

const Displays::Display* pDisplay = Desktop::getInstance().getDisplays().getDisplayForRect (getBounds());

Rail

Sorry for late reply.
Thanks for the answer!