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

Fix window maximize on windows #79

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

ManpreetXSingh
Copy link
Contributor

@ManpreetXSingh ManpreetXSingh commented Feb 8, 2024

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.

Added a temporary fix for maximizing the window.
Earlier unless changed through code win_mode did not update to show the current window mode.
@aappaapp aappaapp requested a review from voylin February 12, 2024 12:55
@voylin
Copy link
Collaborator

voylin commented Feb 13, 2024

Looks good, thanks for the changes! ^^

@voylin voylin merged commit 699f96c into VoylinsGamedevJourney:master Feb 13, 2024
1 check passed
@ManpreetXSingh ManpreetXSingh deleted the fix-maximize branch February 13, 2024 23:59
@ManpreetXSingh ManpreetXSingh restored the fix-maximize branch February 28, 2024 11:16
@ManpreetXSingh ManpreetXSingh deleted the fix-maximize branch February 28, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants