I have a main window with a popup menu whose items open new windows. When these new windows open (to the front) and the popup menu goes away, the main windows comes to front, hiding the new window just opened.
It seems the closing of the menu causes the window to go to front. If I open a normal drop-down menu and, without closing it, I click another window (even non-juce windows) that window goes to front briefly, the juce window lose focus, closes the menu and comes to front…
This behavior happens only on Mac (ppc and intel) with non-modal windows.