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

imgui: Dispatch SDL text input requests to main thread on macOS. #1519

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

squidbus
Copy link
Contributor

@squidbus squidbus commented Nov 11, 2024

SDL_StartTextInput and SDL_StopTextInput utilize UI APIs that need to be executed from the main thread on macOS. SDL does not seem to handle dispatching itself, nor does it document that these should be executed from the main thread. To handle this without much disturbance, we can just dispatch these calls to the main thread on macOS.

I've also reported upstream to SDL to get either a fix or documentation clarification on this: libsdl-org/SDL#11447

Fixes any game using IME input.

@georgemoralis georgemoralis merged commit f5618e0 into shadps4-emu:main Nov 12, 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