Fix maximizing window when screen shrinks
!104 (merged) fixed an intermittent issue where the window was launched at a size too small to be usable (#110 (closed)) at the cost of the following regression:
- If launched at 2560×1440, the window is correctly not maximized
- If launched at 1280×720, the window is correctly maximized
- If I increase the resolution from 1280×720 to 2560×1440, the window is correctly unmaximized
- If I decrease the resolution from 2560×1440, the window is not maximized
I have reproduced this regression under X11 on Endless OS, and under Wayland on Fedora.