Comment 27 for bug 168422

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

No, this is not exactly what I meant, but other than that everything you state is correct!

> That's why I would prefer storing the maximized state as a state and not "simulated" as it's now.

Yes, that's what should be done. Store both the state (maximized or not maximized) and the geometry (x, y, w, h) in the document. When reopening the file,
 - if it was saved in the unmaximized state, then we'll open it like that again and use the geometry data to position and size the window. Period.
 - if it was saved in maximized state, then it will again be maximized. Any geometry data will be discarded. In most cases this will be OK, but if you open it on a different system with a different resolution then the window will be bigger or smaller than saved, which might also affect the zoom. We'll have to live with that, because we cannot have both the same geometry and the same maximized state when going to a different resolution.

I hope that I made myself more clear this time ;-)