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 "-fullscreen" argument on Wayland #2688

Merged
merged 1 commit into from Jul 18, 2023
Merged

Fix "-fullscreen" argument on Wayland #2688

merged 1 commit into from Jul 18, 2023

Conversation

weirddan455
Copy link
Collaborator

Fixes #2671

Initializing the window to fullscreen was being handled twice: Once in GUI_StartUp and then later in sdlmain.
Removed the redundant handling.

Initalizing the window to fullscreen was being handled twice:
Once in GUI_StartUp and then later in sdlmain.
Removed the redundant handling.
@johnnovak
Copy link
Member

Works fine on macOS. Can you check Windows please?

-fullscreen was working on macOS before this change too, but this fix gets rid of the below error when -fullscreen is supplised:

image

So, overall, it's better but make sure Windows still works.

@weirddan455
Copy link
Collaborator Author

Tested in Windows. It works and actually looks a bit smoother. In current main, you can see it create an empty window, sit there for second, and then go fullscreen. With this patch, it loads directly to fullscreen without seeing that awkward transition.

Copy link
Member

@johnnovak johnnovak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @weirddan455

@johnnovak johnnovak merged commit 9ce69c2 into main Jul 18, 2023
51 of 52 checks passed
@weirddan455 weirddan455 deleted the wd/fullscreen-bug branch July 18, 2023 21:44
@johnnovak johnnovak added enhancement New feature or enhancement of existing features video Graphics and video related issues Linux Issues related to GNU/Linux labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement of existing features Linux Issues related to GNU/Linux video Graphics and video related issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fullscreen doesn't work in SDL Wayland mode
2 participants