freeciv21
freeciv21 copied to clipboard
Client sometimes forgets last window size when opening via desktop shortcut with fc21:// link
Describe the bug When opening the client via a desktop shortcut with a fc21:// link, the client sometimes forgets the last window size and opens in a small window. It seems to be related to it taking too long to do something sometimes and Windows showing it as not responding for a very short while (a second or two max), but it's very irregular. Sometimes it opens fine 10 times in a row, sometimes it opens several times in a small window.
To Reproduce Steps to reproduce the behavior:
- Create a desktop shortcut with a fc21:// link to a game
- Open the client via any means, start or join a game, maximize the window, close the client
- Open the client again and go into a game to verify it opens maximized again
- Open the prepared shortcut
- Observe the client opens on the "connect to server" page
- Wait for a bit until it connects and shows the game
- Observe the client window sometimes stays the same size instead of maximizing (seems to happen roughly 25% of the time, but it's very inconsistent)
Expected behavior The window should always remember what size it was in-game
Platform and version (please complete the following information):
- OS: Windows 10
- Freeciv21 version: beta 4
- Ruleset/Longturn game (if applicable): Noticed on LT73Avi, since I open that via a shortcut every time
Additional context No additional context