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

Make sure Window's title is respected before we compute the size #85312

Conversation

YuriSizov
Copy link
Contributor

@YuriSizov YuriSizov commented Nov 24, 2023

Fixes #85118.

Like the title says, we used to first apply the size limit, and then we would update said limit without it affecting the actual size. So the window would be displayed with one size, and window's contents would refer to another size. Good old DisplayServer/Window de-sync.

It may not be Windows specific, as far as OSes go, highly depends on how window management is implemented on each platform. But since we are only reproducing it on Windows for now, I'm marking it as such. Also I guess we can say it's a regression because it's been introduced with the feature to keep the title visible in 4.2: #80409.


Also removes some suspicious and outdated code that forced this particular dialog to change size when the warning message changed.

Also removes some suspicious and outdated code that forced this particular
dialog to change size when the warning message changed.
@YuriSizov YuriSizov added bug platform:windows topic:gui cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Nov 24, 2023
@YuriSizov YuriSizov added this to the 4.3 milestone Nov 24, 2023
@YuriSizov YuriSizov requested a review from a team as a code owner November 24, 2023 15:36
Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

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

Title update change seems fine.

@akien-mga akien-mga merged commit 36e033b into godotengine:master Dec 5, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the window-and-the-case-of-an-unexpected-shrinkage branch December 5, 2023 12:25
@YuriSizov
Copy link
Contributor Author

Cherry-picked for 4.2.1.

@YuriSizov YuriSizov removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants