There appears to be an issue with window bounds being saved when a window is closed and reopened on a second monitor. The window tends to reopen on the main monitor, even when it is closed on the second monitor. I have been able to replicate this issue in a simple JUCE demo. I assume that the window’s state is not being saved correctly.
Steps to reproduce:
- Swap JUCE examples/GUI/WindowDemo.h with our file
- Open the DemoRunner and run the Windows example
- Open the window with the button labelled “bug”
- Move the generated window to the second monitor and maximize it
- Repeatedly close and open the window
- At some point, you’ll see the window incorrectly opens on the main monitor
- Note the bounds string before this happens is correctly the bounds for the second monitor
WindowsDemo.h (12.7 KB)
