I am using a DocumentWindow with JUCE 2.0 and I have a dual-display Mac where the second display (non-main, not the one with the Mac menubar) is arranged to be above the first/main display (the one with the Mac menubar). I am positing the window by calling its setBounds(x, y, width, height) method. I am calculating the height of the Mac menubar like so:
and then using this to offset the Y position value to make sure that the window does not appear behind the Mac menubar if I call setBounds with Y as 0 (a JUCE issue covered elsewhere in the forums). This works fine with a single display or multi-display where a secondary display is not positioned above the main display. However, in the situation described above with a secondary display positioned above the main one, then the window gets drawn behind the Mac menubar even when setting Y to 22 (the height of the Mac menubar). When the secondary display is above, you actually have to double this value to 44 in order to get the window to appear aligned precisely at the bottom of the Mac menubar. So in this situation, the bug is that the positioning of the DocumentWindow is happening with an upward offset equal to the height of the Mac menubar.