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

desktop: Do not resize the window while it is maximized #15966

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sleepycatcoding
Copy link
Member

Fixes #11364.

@n0samu
Copy link
Member

n0samu commented Apr 12, 2024

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:

ruffle_24ycUiMAYa.mp4

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)

@sleepycatcoding
Copy link
Member Author

Maybe we shouldn't try to resize the window at all when it is maximized?

@n0samu
Copy link
Member

n0samu commented Apr 12, 2024

Sounds good to me!

@sleepycatcoding sleepycatcoding marked this pull request as draft April 12, 2024 20:34
@sleepycatcoding
Copy link
Member Author

@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)

@n0samu
Copy link
Member

n0samu commented Apr 12, 2024

Just tested and it's working well now, thanks! 👍

@sleepycatcoding sleepycatcoding changed the title desktop: Do not wait for resize when window is maximized desktop: Do not resize the window while it is maximized Apr 12, 2024
@sleepycatcoding sleepycatcoding marked this pull request as ready for review April 12, 2024 21:42
@sleepycatcoding sleepycatcoding force-pushed the dont_maximize_sleep_time branch 4 times, most recently from 48817d6 to 1e46b8b Compare April 19, 2024 18:48
@sleepycatcoding sleepycatcoding added the waiting-on-review Waiting on review from a Ruffle team member label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop waiting-on-review Waiting on review from a Ruffle team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sometimes getting white screen after 'close' and opening a game
3 participants