[Github-comments] [geany/geany] After restarting Geany in a maximized state, when unmaximizing, window is the wrong size (Issue #2976)
xiota
notifications at xxxxx
Tue Nov 2 03:48:06 UTC 2021
Numbers are for illustration.
1. Geany started. Reads and restores config in non-max state, 400x300, sidebar at 300.
2. Geany maximized. 640x480. GTK magic: sidebar at 540.
3. User moves sidebar to position 500.
4. Geany closed.
a. Calculate adjusted sidebar position as current sidebar position - maximized width (current) + non-maximized width (previous) = 500 - 640 + 480 = 340.
b. Save maximized state (true). Save original geometry (400x300). Save adjusted sidebar position.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2976#issuecomment-957076162
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211101/a38d16a1/attachment.htm>
More information about the Github-comments
mailing list