-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Unintended window size changes (DisplayServer regression) #58032
Comments
@h0lley Can you reproduce this in 3.4.2? Also, please test on Windows or macOS if you have access to hardware running those operating systems 🙂 |
Under Windows 10, cannot reproduce the first part (
For the second part, here is what I get with a native 1920x1080 monitor :
It could have a link with window decoration add/remove on switch. |
It's Godot 4 only - I encountered it while porting. |
This happens because the value of the The |
Godot version
4.0.alpha2
System information
Ubuntu 21.10, Nvidia GTX 970, Vulkan
Issue description
When a call to
DisplayServer.window_set_size()
is followed byTranslationServer.set_locale()
(and presumably other functions that meet certain requirements), then Godot may change the window size a second time for an undiscernible reason.Steps to reproduce
Start a project with this in
_ready()
:And notice that instead of the specified window size, the window appears with the default size from project settings.
When listening to the viewport's
size_changed
signal, we can see that Godot changed the window twice: initially to the intended size, and then right back to the default one.Start a project with this in
_ready()
:And notice that upon exiting fullscreen mode, the window size is changed a total of four times:
Minimal reproduction project
Please have a look at this minimal project, toggle fullscreen via F11 and observe the log.
godot_4_window_size_bug.zip
The text was updated successfully, but these errors were encountered: