Unable to keep maximized whenever monitor resolution changes
Posted: Tue May 27, 2025 12:36 am
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.
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.