freeciv21 icon indicating copy to clipboard operation
freeciv21 copied to clipboard

Client sometimes forgets last window size when opening via desktop shortcut with fc21:// link

Open daavko opened this issue 3 years ago • 0 comments

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:

  1. Create a desktop shortcut with a fc21:// link to a game
  2. Open the client via any means, start or join a game, maximize the window, close the client
  3. Open the client again and go into a game to verify it opens maximized again
  4. Open the prepared shortcut
  5. Observe the client opens on the "connect to server" page
  6. Wait for a bit until it connects and shows the game
  7. 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

daavko avatar Oct 02 '22 13:10 daavko