This PR adds a temporary fix for maximizing the window on windows. I've tested on Windows 11, Fedora KDE and OpenSUSE GNOME.
I've tried to keep the code as close to the original as possible. This should allow quick replacement of the code when the issue is fixed in godot itself.
There still exist slight issues like the windows 7 style title bar is displayed for 1 frame before the maximizing animation is played.
A major drawback of this fix is that get_window().mode does not return Window.MODE_MAXIMIZED even when the window is maximized. As a workaround win_mode variable is implemented with a getter and a setter.
This PR adds a temporary fix for maximizing the window on windows. I've tested on Windows 11, Fedora KDE and OpenSUSE GNOME. I've tried to keep the code as close to the original as possible. This should allow quick replacement of the code when the issue is fixed in godot itself. There still exist slight issues like the windows 7 style title bar is displayed for 1 frame before the maximizing animation is played. A major drawback of this fix is that
get_window().mode
does not returnWindow.MODE_MAXIMIZED
even when the window is maximized. As a workaroundwin_mode
variable is implemented with a getter and a setter.