DoomRunner icon indicating copy to clipboard operation
DoomRunner copied to clipboard

[suggestion] Remembering window size, arrangement and position

Open mstempell opened this issue 1 year ago • 5 comments

Would be great if the program remembered its window size, position, and arrangement (related to another suggestion I got), when closed and reopened.

mstempell avatar Jan 21 '24 15:01 mstempell

But this is already there for a long time. What's your operating system?

Youda008 avatar Jan 21 '24 15:01 Youda008

It's: Windows 10 Pro / Version 22H2 / Build 19045.3930 / Windows Feature Experience Pack 1000.19053.1000.0

And testing some more after your answer, window size is actually remembered, yes. So sorry for mentioning that.

Then it's just that the window pops up on the upper left, not where it was when closed. And if closed maximized, it's not exactly maximized when reopened.

mstempell avatar Jan 21 '24 15:01 mstempell

In the past there was an issue with secondary monitors, where if you closed the app on an secondary monitor, then disconnected the monitor (laptop and external monitor) and open the app again, the window would not be visible and movable, because it would appear at virtual coordinates that no longer exist. That's why i have to re-center the window everytime. If i find a workaround, it can be removed.

Youda008 avatar Jan 24 '24 10:01 Youda008

OK, that's indeed a serious problem you describe, that needed a solution.

If it cannot be an universal behavior, maybe there could a preference option to switch that re-centering off? (with a mention like "behavior not guaranteed with secondary monitor setup, delete preference file if the program window cannot be seen"?)

Or maybe the screen configuration can be known and recorded when closing, so that if different when the program is reopen, only then it then re-centers?

mstempell avatar Jan 24 '24 12:01 mstempell

I found a way to detect if the last known screen coordinates are still valid, so i think it's now working correctly. It will be part of 1.8.3 release.

Youda008 avatar Feb 25 '24 17:02 Youda008