Page 1 of 1

Unable to keep maximized whenever monitor resolution changes

Posted: Tue May 27, 2025 12:36 am
by CrendKing
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.

Re: Unable to keep maximized whenever monitor resolution changes

Posted: Tue May 27, 2025 7:53 am
by xnview
do you had this issue with previous too? (It seems that it's a bug in Qt API)

Re: Unable to keep maximized whenever monitor resolution changes

Posted: Tue May 27, 2025 10:46 am
by CrendKing
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 8)) 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

Posted: Tue May 27, 2025 11:12 am
by user0

Re: Unable to keep maximized whenever monitor resolution changes

Posted: Tue May 27, 2025 11:18 am
by CrendKing
Bingo! It's interesting we both posted an long-existed issue about the same time.

Pierre, feel free to close this duplicate.