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

Set event filter early in the startup process to work around SDL issue #6259

Merged
merged 1 commit into from Apr 22, 2024

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented Apr 20, 2024

Turns out that setting the event filter drops all events, so this PR moves the SDL_SetEventFilter call as close as possible to SDL_Init.

The filter isn't doing too much so this shouldn't cause any issues (it'll be doing more in #6235, but that could only cause some dropped events on startup).

I've tested this with #6105 and can confirm it fixes the issue so this workaround is no longer needed.

@smoogipoo smoogipoo merged commit 9b7172f into ppy:master Apr 22, 2024
21 checks passed
@Susko3 Susko3 deleted the set-event-filter-early branch April 22, 2024 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants