This might be the solution:
http://stackoverflow.com/questions/866970/qt-how-to-set-main-windows-initial-position
This would be quite user-friendly, especially when compounded with an
option to disable reading/writing of the information to/from .leo
files. The key is to save the information when window is closed.
--
Ville M. Vainio
http://tinyurl.com/vainio
One of my pet annoyances is the twitching of leo windows on startup
(and that I always need to resize/move them, especially if I didn't
save it).
This might be the solution:
http://stackoverflow.com/questions/866970/qt-how-to-set-main-windows-initial-position
> There are already several calls to setGeometry in the qt gui.
Yes, that's the problem ;-).
>
> In particular, setTopGeometry calls setGeometry.
>
> I suspect the "twitching" is due to too many calls to setGeometry, not too
> few.
Indeed. I thought this one call could be removed by one that restored
the previous geometry from QSettings.
However, this problem is not at all of interest anymore. I have pushed
mod_framesize.py that prevents programmatic geometry changes by
hardcoding the framesize (and hence eliminates twitching and weird
frame sizes when pulling from bzr). Also, the tabbed ui pretty much
makes this issue irrelevant.