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

Fixed forced modal pause of the application when resizing or moving on Windows #415

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

Shelim
Copy link
Contributor

@Shelim Shelim commented Jan 27, 2024

The problem

Current implementation will force a pause on resizing or moving a window on Windows. This pause is modal: it will block all activity in main thread, including all polling inside update (which can result in as severe consequences as disconnection of multiplayer games!).

prev

The solution

The solution was long-and-length discussed in 8-years-spanning thread at SDL repo (!) and finally met final, safe solution in this SDL 2.30 PR at 2023, November.

This is a port of that solution into miniquad. It will only affect Windows platform.

fixed

@not-fl3
Copy link
Owner

not-fl3 commented Jan 30, 2024

Great work, thanks!

@not-fl3 not-fl3 merged commit 830864c into not-fl3:master Jan 30, 2024
10 checks passed
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