zeal
zeal copied to clipboard
Window position is wrongly stored and restored
When reopening the window shows up a few pixels below where it was when was last closed.
E.g. after opening, resize and position it around 100 pixels from top of screen and then close. After reopening, the window has the same size but the top position is around at 150 pixels from top of screen (values are merely an example, I didn't measure the proper values).
This way, if it starts around near the top of screen, after reopening it a couple of times it will show up around the middle to the bottom of screen.
I cleaned the window_geometry
value in the .ini but the issue still happens.
What are your OS and Zeal versions?
Oh sorry, my bad, I forgot to mention that. Windows 7 64 bits SP1, latest version of zeal (0.6.1).
I was able to reproduce the bug, the window always appears precisely one title bar height below its previous position.
As part of the solution for #1084, Zeal will no longer use Qt's saveGeometry()
and restoreGeometry()
functionality, that should solve this issue as well.
I have an issue with restoring Zeal window position and geometry. The window does not restore position, nor does it restore geometry if it was closed from the maximized state.
In Qt you can use QMainWindow restoreGeometry
and restoreState
methods:
https://doc.qt.io/qt-6/restoring-geometry.html