Describe the bug
On monitors with a scale other than 100%, persistent windows are not recreated at the location where they were closed. In the gif below, I am running a shell script to start the demo app right after I manually close it. You can see the creep down and to the right. This screen has a 150% scaling.

Once the window has moved off the monitor, the program can no longer be brought back onto the screen and is very difficult to interact with.
To Reproduce
- You must have a monitor with a scaling other than 100%.
persistence must be enabled (it is by default).
- Run
egui_demo_app (cargo run --release)
- If the window is not already on the scaled monitor, drag it to the middle of the scaled monitor
a. The further the window's top left corner is from the monitor's top left corner, the greater the effect noticed in step 6 will be.
- Close the program.
- Run
egui_demo_app again.
- Notice that the window is in a different location.
Expected behavior
The window reappears in the same location where it was closed.
Desktop (please complete the following information):
- OS: Windows 11 Pro
- Browser: N/A
- Version:
rust-version = "1.76", egui: version = "0.27.2"
Describe the bug
On monitors with a scale other than 100%, persistent windows are not recreated at the location where they were closed. In the gif below, I am running a shell script to start the demo app right after I manually close it. You can see the creep down and to the right. This screen has a 150% scaling.

Once the window has moved off the monitor, the program can no longer be brought back onto the screen and is very difficult to interact with.
To Reproduce
persistencemust be enabled (it is by default).egui_demo_app(cargo run --release)a. The further the window's top left corner is from the monitor's top left corner, the greater the effect noticed in step 6 will be.
egui_demo_appagain.Expected behavior
The window reappears in the same location where it was closed.
Desktop (please complete the following information):
rust-version = "1.76", egui:version = "0.27.2"