mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #1519] [MERGED] imgui: Dispatch SDL text input requests to main thread on macOS. #2146
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/1519
Author: @squidbus
Created: 11/11/2024
Status: ✅ Merged
Merged: 11/12/2024
Merged by: @georgemoralis
Base:
main← Head:macos-ime📝 Commits (1)
c30b565imgui: Dispatch SDL text input requests to main thread on macOS.📊 Changes
1 file changed (+20 additions, -3 deletions)
View changed files
📝
src/imgui/renderer/imgui_impl_sdl3.cpp(+20 -3)📄 Description
SDL_StartTextInputandSDL_StopTextInpututilize 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: https://github.com/libsdl-org/SDL/issues/11447
Fixes any game using IME input.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.