Window dimensions not correctly stored if window is closed while maximized
- Epiphany version: 45.beta-27-g0e4daf03+
- WebKitGTK version: WebKitGTK 2.41.90
- Distributor: GNOME-Nightly Flatpakrepo
Description:
In GNOME, window sizes are stored along with the maximized state. So, if a program is left maximized when closes, it will be maximized on the next run. However, if un-maximized, it will go back to the last windowed size set by the user. For whatever reason, when Web is maximized when closed, on next run it will correctly be in the maximized state, but when un-maximized, it will just set the windowed dimensions to the maximized dimensions, which means the user needs to manually resize it every time to a desired window size.
Steps to reproduce:
- Set a desired window size
- Maximize the main Web window
- Close Web
- Re-open Web, and un-maximize it
Expected behaviour:
Window should store the last dimensions set by the user before it was maximized, consistent with other GNOME applications, as demonstrated in the following screencast of Nautilus.
Screencast_from_2023-08-18_10-30-02
Actual bahaviour:
Window stores the maximized dimension as the windowed dimension when the program is quit, resulting in the behaviour demonstrated in the following screencast.