Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximizing doesn't store main window position properly #302

Closed
windymilla opened this issue Jun 24, 2024 · 1 comment · Fixed by #305
Closed

Maximizing doesn't store main window position properly #302

windymilla opened this issue Jun 24, 2024 · 1 comment · Fixed by #305
Labels
bug Something isn't working

Comments

@windymilla
Copy link
Collaborator

This bug is in GG1 too:

On Windows at least, if you do the following, you won't get what you expect:

  1. Ensure main window is not maximized.
  2. Resize window so it's about half the screen size in both directions.
  3. Position window away from the top-left corner of the screen, e.g. put the top-left of the window near the center of the screen.
  4. Maximize window
  5. Quit GG
  6. Restart GG

GG will have its top-left in the position you located it in step 3, but will have its size at the maximized size (so some of the window goes off the right & bottom of the screen.

It's pretty obvious in this case, but less obvious if the offsets are smaller, e.g. a user complained their status bar vanished off the bottom, cause by this bug.

NTS: See if it's possible to intercept/control maximizing - could store maximized flag in GGprefs, and make sure the position & size are the non-maximized values, and when GG starts, maximize if it was maximized on exit. If not, then maybe if maximized, force position to (0,0). Or (worst option), don't store size when maximizing & document that maximizing doesn't work well (on Windows) and explain how to resize window so it's more or less maximized without using the maximize button.

@windymilla windymilla added the bug Something isn't working label Jun 24, 2024
@srjfoo
Copy link
Member

srjfoo commented Jun 24, 2024

Tested on macOS Sonoma: On restart at step 6, the maximized window is properly positioned at the top left of the screen, but GG does seem to have lost the original (pre-maximized) size of the screen, and pre-maximized position of the top left corner of the window, because when I un-maximize, the window has been repositioned at the top left, and resized to show about 9 or 10 characters (at 14 point/pix (the setting doesn't say which unit is used), and about 9 lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants