Bo Peng wrote:
At the end of LyX::newLyXView() you can read:
// create the main window
LyXView * view = &pimpl_->application_->createView(width, height, posx,
posy, maximize);
Thanks.
> There is no file format change.
Why is that? I would like LyX to reopen as many window as were opened
when I exited.
So you need to save/restore more key=value pairs. This is not format
change.
Indeed. But I meant that you will probably have to change the key names.
Or maybe introduce sections [WINDOW 1], [WINDOW 2], etc.
And I would also like LyX to open a second window with
the same size as the one I closed a bit earlier.
This is not exactly session's business (which works only on
start/exit) but can be easily done.
Please.
I am not sure I understand what you say here but IMHO window geometries
have nothing to do with lastopened file.
When lyx exists, we save the opened buffers and its cursor location.
When lyx starts, we load these buffers. This is lastopened files, and
is GUI independent.
Now, we need to add windows size and position to the lastopened files
info so that we can re-open them with the same size/position. This is
GUI dependent.
I understand.
Thanks,
Abdel.