Unable to keep maximized whenever monitor resolution changes

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
CrendKing
Posts: 3
Joined: Tue May 27, 2025 12:23 am

Unable to keep maximized whenever monitor resolution changes

Post 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.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Unable to keep maximized whenever monitor resolution changes

Post by xnview »

do you had this issue with previous too? (It seems that it's a bug in Qt API)
Pierre.
CrendKing
Posts: 3
Joined: Tue May 27, 2025 12:23 am

Re: Unable to keep maximized whenever monitor resolution changes

Post 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?
CrendKing
Posts: 3
Joined: Tue May 27, 2025 12:23 am

Re: Unable to keep maximized whenever monitor resolution changes

Post by CrendKing »

Bingo! It's interesting we both posted an long-existed issue about the same time.

Pierre, feel free to close this duplicate.
Post Reply