ruffle
ruffle copied to clipboard
desktop: Do not resize the window while it is maximized
Fixes #11364.
Testing the original issue now, I notice that on Windows, loading an SWF into a maximized window does result in a resize, but the window doesn't realize that it is now unmaximized, so it takes two clicks to maximize the window again:
https://github.com/ruffle-rs/ruffle/assets/71368227/d0069dae-a3ae-4c7e-931c-fb6183a7a025
I guess we should look into fixing this behavior, maybe in a followup. (I can open a new issue if this doesn't seem easy to solve)
Maybe we shouldn't try to resize the window at all when it is maximized?
Sounds good to me!
@n0samu could you test the changes on Windows to see if it fixes the window desync. (I don't have a Windows environment to test myself)
Just tested and it's working well now, thanks! 👍
is this ready?