My app wants to remember its last geometry so it can restore itself to the last position and size if it is restarted.
So OnClose I GetSize and GetPosition and save the results in an init file.
OnStart I read this init file and SetSize and SetPosition to restore the geometry.
But here’s the problem: it appears every time I do this the window gets a little bigger.
The reason is that if I SetSize (x, y) and GetSize => (x’, y’) x’ - x > 0 and y’ - y > 0.
On Linux x’ - x = 8 and y’ - y = 32.
Is there a natural way for me to do the right thing?
I guess I can do the above math OnStart and use the differences to adjust the saved values OnClose.
Just wondering if there’s a cleaner way.