Skip to content

Properly store window size in GSettings

Michael Catanzaro requested to merge mcatanzaro/window-size into master

The window size is stored in two places:

  • The session state, for every saved window
  • GSettings, as a fallback

It has to be stored in GSettings because the user might not save any session state at all, or might close the final tab causing there to be no windows stored in the session state file.

The existing code reads the window size from GSettings properly, but at some point long ago the code to write the window size got broken. This was reported more than 5 years ago but I didn't investigate it until now....

Fixes #525 (closed)

Merge request reports