Version: XnView MP 1.9.0
Platform: Windows 11 24H2
Steps to reproduce:
1. Remove all existing config files. Start anew.
2. Make sure the current monitor resolution is something like 2560x1440.
3. Open a picture. Maximize the window. Close.
4. Change monitor resolution to 1920x1080.
5. Open the same picture. Notice the window is tiny and not maximized. Maximize it.
6. Change monitor resolution back to 2560x1440.
7. Open the same picture. Notice the window is tiny again and not maximized.
Expected result:
I expect when window is maximized, it should stay maximized regardless of resolution.
Actual result:
It seems XnView MP stores some raw geometry numbers in the ini's "geom" field. And when the stored data can't match the new environment, it falls back to show a conservatively small window. I wonder if "is_window_maximized" is stored as a separate flag.
Current workaround:
Using fullscreen viewer mode.
Unable to keep maximized whenever monitor resolution changes
Moderators: helmut, XnTriq, xnview, Dreamer
Re: Unable to keep maximized whenever monitor resolution changes
do you had this issue with previous too? (It seems that it's a bug in Qt API)
Pierre.
Re: Unable to keep maximized whenever monitor resolution changes
I've had this issue for years. I see the old version 1.5.5 (though it is listed as 1.5.3, another bug
) in the download section in the homepage, and just tried it. It has the same issue. I'd be surprised no one ever reported this. Guess not many people change monitor resolution?

Re: Unable to keep maximized whenever monitor resolution changes
Bingo! It's interesting we both posted an long-existed issue about the same time.
Pierre, feel free to close this duplicate.
Pierre, feel free to close this duplicate.