Window size no longer modifiable since 4.4

Godot Version

4.4

Question

The get_window().set_size(displaySize) function doesn’t seem to have worked since version 4.4. I’ve checked by going back to 4.3, and my code works fine. This has been a problem since 4.4, and I’m not getting any errors. How to fix it

What platform? It works for me just fine on Windows 11 and macOS.

I found out why it was doing that, it was because of the “embed game”, despite the fact that I’m in fullscreen by default in the project settings, and that normally, it’s not activated. I had to default to “fenetrer” and deactivate the “embed game” for everything to return to normal. Otherwise, with the “embed game” activated, everything works correctly too. The problem only occurs if the default display mode is fullscreen.