godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.46k stars 21.27k forks source link

WINDOW_MODE_WINDOWED acting weird #86418

Open KentaPanic opened 11 months ago

KentaPanic commented 11 months ago

Tested versions

Reproducible in -4.2.1 stable Windows x64 forward+

System information

Windows 10 x64 - Godot 4.2.1 stable forward+

Issue description

I am using a option button to set my window mode. but I noticed every time I maximised my window using the maximised button on the application then changed the window mode to something else then back to windowed. it wouldn't be in windowed.(I cant really explain it well so just watch the video attached)

https://github.com/godotengine/godot/assets/154477152/bc0b7f5d-a733-4f89-a9e4-e8cea7633a44

Steps to reproduce

In the Minimal reproduction project run the game. then in the top right there will be a Maximise button. click it then change the OptionButton in the center to either fullscreen or exclusive then change it back to windowed.

Minimal reproduction project (MRP)

WINDOWMODE.zip

Swarkin commented 11 months ago

This is similar to my previous issue https://github.com/godotengine/godot/issues/79328 (the title had been changed but the description still shows my original issue which I think is related to this.)

MikkBenelis commented 7 months ago

Yesterday I faced the same issue with 4.2.1, decided to update to the latest 4.2.2 and it is still relevant

alvinhochun commented 4 months ago

I am no longer able to reproduce this on 4.3 beta 2 and beta 3.

Calinou commented 4 months ago

@alvinhochun Isn't this a duplicate of https://github.com/godotengine/godot/issues/93488? The descriptions look very similar.

alvinhochun commented 4 months ago

Curiously no, I think some other change may have fixed the switch out of fullscreen. I don't have time to look at the code now.

Edit: My guess would be #88329