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

Apply WS_MINIMIZE style on window creation #91487

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

shatyuka
Copy link
Contributor

@shatyuka shatyuka commented May 2, 2024

For Windows only

Current behavior
When the window mode is "Minimized", the main window is displayed for a moment and then minimized to the taskbar.

PR behavior
The main window is created with "WS_MINIMIZE" style, and won't show up until all initialization is complete.

It also needs #88289 to render correctly.

@shatyuka shatyuka requested a review from a team as a code owner May 2, 2024 22:51
@Calinou Calinou added this to the 4.3 milestone May 2, 2024
@akien-mga akien-mga modified the milestones: 4.3, 4.4 Jul 31, 2024
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally (rebased on top of master 84dcdde), it works as expected on Windows 11 23H2. Window modes other than Minimized are unaffected by this PR (as expected).

This makes for a nice easy way to hide the boot splash (albeit with a taskbar entry still being visible during boot), since you can set the window mode to Minimized in the Project Settings and restore the window in an autoloaded script's _ready() method.

@akien-mga akien-mga merged commit 36837bf into godotengine:master Oct 4, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

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.

4 participants