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

Windows: Restore to windowed mode using SW_NORMAL #93733

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

alvinhochun
Copy link
Contributor

If window was maximized before minimizing, restoring the window afterwards using SW_RESTORE seems to cause the window to forget its original size and position before being maximized, causing the window to fill the screen instead.

Fixes #93488

If window was maximized before minimizing, restoring the window
afterwards using SW_RESTORE seems to cause the window to forget its
original size and position before being maximized, causing the window to
fill the screen instead.
@alvinhochun alvinhochun requested a review from a team as a code owner June 29, 2024 10:28
@AThousandShips AThousandShips added this to the 4.3 milestone Jun 29, 2024
@akien-mga akien-mga changed the title Windows: Restore to windowed mode using SW_NORMAL Windows: Restore to windowed mode using SW_NORMAL Jul 9, 2024
@akien-mga akien-mga requested a review from bruvzg July 9, 2024 08:40
@akien-mga akien-mga merged commit 1b49d63 into godotengine:master Jul 11, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@alvinhochun alvinhochun deleted the windows-restore-sizing branch July 17, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing window mode Windowed -> Maximized -> Minimized -> Windowed results in window filling the screen
4 participants